Active State Navigation Menu Item

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
blanesworld's picture

Hi All,

I really enjoyed the last meet up on the topic of themes, thank you for the wonderful discussions. Since then I realized that I have had another pertinent question regarding theming with rollover and active menu images. I am using the image menu module to create rollovers for my primary navigation. Any ideas on how to have a page in a site represented by an active state button? Attached is an image of what I am trying to achieve.

Much thanks,

D

AttachmentSize
activeNav.jpg23.21 KB

Comments

I'm not sure on what the

BTMash's picture

I'm not sure on what the image menu module does, but I think by default a link is given a class 'active' if that link is the same as the current page it is on. You could use CSS rules on that active menu link and change the image?

I wish menus had an Active class

Chris Charlton's picture

UPDATE TO POST: (I'm tired) I misspoke earlier... I meant I'd like the active class to be part of core to compliment Menus already having a class for first and last. Maybe this would be good for the Code Sprint in LA this August.

In my last edit I mention first & last, but I was mistaking menus with something else. Again, I'm tired today.

Chris Charlton, Author & Drupal Community Leader, Enterprise Level Consultant

I teach you how to build Drupal Themes http://tinyurl.com/theme-drupal and provide add-on software at http://xtnd.us