Highlight ancestor AND current menu item at the same time
-
Sorry if this is too dumb of a question, BUT…!
Re-reading the wonderful Dynamic Menu Highlighting Codex article, but I still cannot figure this one out.
I have a horizontal top menu . The usual:
About Gallery Products Contact .
The sidebar menu is basically showing the subpages of these.
I have highlighted the curent-menu-item for each.Let’s say, the top menu current item is RED, and the sidebar current menu item is BLUE.
QUESTION:
How do i manage to highlight BOTH the top menu current item AND the sidebar menu current item at the same time?Now, if i go to “Products” in the top menu, it’s highlighted (RED), but if i click on the sidebar item “Books”, or “Pencils”, they become highlighted (BLUE) but the Products (RED) is not highlighted anymore…
I know that the answer is somewhere in the conditional tags,that would say, “if the page is “Cars” AND is child of “Products” use .current_menu_item on both”, or something similar.
but i cannot figure it out …
Thanks a lot!
- The topic ‘Highlight ancestor AND current menu item at the same time’ is closed to new replies.