Archived topic
Highlight parent menu items when viewing sub-pages
3 replies · Started by Gábor on March 28, 2018
How can I highlight the parent menu items when viewing sub-pages?
That should happen automatically if the menu is built in "Appearance > Menus", and the theme location is set within the menu.
I'm not seeing any dropdowns in your main menu?
Hello,
I find the same problem. It works for me the following code in appearance > personalize > css additional:
.current-page-ancestor {
background-color: blue;
}
But I would like to highlight the color of the text, not the background.
Any suggestions?
Thanks.
There's an option for this in Customize > Colors > Primary Navigation - it's the current menu item colors. Do those not work for you?
Let me know :)