submenu – how to keep the parent highlighted?
URL to the page in question:
http://
-
hey bill,
right now the menu highlighting works for the current items.
when you look at a page from a submenu you have one problem, the submenu is visible when hovering over the parent – nothing is highlighted it the parent menu anymore.
is there a way to change it, so that the parent menu is always highlighten?
thomas
Good Morning Thomas,
You’re welcome to add different styling there. WordPress adds the current-menu-parent class to the li in your menu that you can use a styling hook like this:
li.current-menu-parent {
color: #fff;
background-color: #000;
}
Just change the color to your preferred text color and the background-color to what you’d like the background to be like.
Take care,
Bill
thanks bill this is working!
Fantastic. Take care Thomas
- The topic ‘submenu – how to keep the parent highlighted?’ is closed to new replies.