Code
Gaining control of menus in Drupal - Part 2
In Gaining control of menus in Drupal - Part 1we looked at the default Drupal output for a menu block and the output we were trying to create. We also create two new files in our theme, block.tpl.php and block-menu-primary-links.tpl.php.
We are now going to look at the template.php file and three functions that will allow us to gain access to the unordered list, list item and even the anchor tags that make-up the menu.
Gaining control of menus in Drupal - Part 1
I have been having trouble with styling the default output of a Drupal menu. After much trial and error I finally found the correct combination of steps. The following is the beginning of a three-part tutorial that will allow you access to every tag within a menu's HTML output.
I will begin with the different files and functions that are need to accomplish the task.
