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.

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.

It has been a long and event-filled weekend at Drupal Design Camp - Boston. As I sit in my hotel room on the final night of the camp my thoughts turn to all I have learned and shared. I was able to able to reconnect with old friends and make new ones as well.

Using a light source the right way can add dimension and beauty to a website design. Strong light sources create a stark contrast between light areas and shadows in a design, making the elements look more realistic and dimensional and less flat. Some websites opt instead for a dim light source to create a soft glow around particular areas of the website, to attract the eye more subtly.Using a light source the right way can add dimension and beauty to a website design.
Syndicate content