I'm building this site http://www.argomatic.com/drupal
The menu have two level like the follow:
- item_1
--- item_11
--- item_12
- item_2
--- item_21
--- item_22
...
This menu is defined as "primary links" with two level
The first level don't have a page but when selected, they show a child
(item_1 = item/item_11, for ex. "prodotti" = "prodotti/manipolazione")
The question is:
how i can keep active the menu_father when i choose a menu_child to show the menu_father as selected in the top_bar? (see the difference between when you chose prodotti, prodotti/manipolazione, prodotti/retrofit)
I hope my english is good enough. Thank you
Comments
Comment #1
JohnForsythe CreditAttribution: JohnForsythe commentedDrupal won't keep the parent menu active when you're in a child menu. I don't know of a simple way to fix that, but there might be a module or a code snippet somewhere.
Comment #2
ono-sendai CreditAttribution: ono-sendai commentedFollowing your answer, i tested various solutions
But after some tests, i delete all the modifications and i worked only on style.css
For what i understood, Drupal "tag" the active-trail to the current menu with the class "active-trail"
So, i added this lines to style.css
#nav li.active-trail{
color:#000;
background:#2992c3;
}
I don't know why but the color attribute have no effect; the background attribute work fine.
Comment #3
binford2k CreditAttribution: binford2k commentedfirebug