Styling current pages in dropdown menu?
-
Hi all,
i’m new here and hoping for a little help.
i’m trying to design a website using wordpress. I just started out by trying to tweak the twentyten theme, since it seemed like a great way to start.
Right now i am stuck! My clients really wants the current page to be highlighted in horizontal navigation bar. I figured out how to do it for all my parent pages using this css strip:#access ul li.current_page_item > a,
#access ul li.current-menu-ancestor > a,
#access ul li.current-menu-item > a,
#access ul li.current-menu-parent > a {
color: #FFF;
background-color: #7A910F;
}
#access ul li.current_page_item a,
#access ul li.current-menu-ancestor a,
#access ul li.current-menu-item a,
#access ul li.current-menu-parent a,
#access ul li a:hover {
color: #FFF;
background-color: #7A910F;
}it works fine, but when i enter a child-page, i would also like the parent page to be highlighted in the menu, otherwise the current page is highlighted in the dropdown, not helping the visitor all that much.
Does anyone have an idea what i could use to make that happen?
Please don’t hesitate to ask for more information ?? i’ll try and answer all the best i can
thanks in advance
Mark
- The topic ‘Styling current pages in dropdown menu?’ is closed to new replies.