By johnbeamer on
Has anyone used theme_menu_item to set an "active-trail" class for their primary links. If so I am stuck on how best to implement it through a block of menu (primary) links.
Any pointers much appreciated.
Has anyone used theme_menu_item to set an "active-trail" class for their primary links. If so I am stuck on how best to implement it through a block of menu (primary) links.
Any pointers much appreciated.
Comments
Primary Links: "active"
Primary Links: "active" class for ancestors of current page and unique ID for each menu item
master parent menu item not active if second submenu selected
HowTo: Have "first" and "last" classes on menu blocks
How to make Primary Links li class="first" and "active" works in Nice Menus and Drupal 5.x
How to make both parent and child menu look active?
Thanks but
Most of those are for Drupal 5. Apparently Drupal 6 has an active-trail built in.
This is the most elegant solution I have found ...
http://drupal.org/node/216763