Highlight primary menu item when sidebar menu item is selected
-
Hi everyone,
I have a primary menu and multiple secondary menus which are displayed depending on which primary menu item is selected. I would like it so that when any item in a secondary menu is selected, the matching primary menu item is highlighted.
Here is a sample webpage:
https://gangapremhospice.org/wordpress/donate/
As you can see, the primary menu item is highlighted only when the first secondary menu item is selected. I would like this to work for all secondary menu items, whether they lead to a page or category page.
If someone could help me with some simple code to achieve this, it would be greatly appreciated.
Thanks!
Frugalmeister
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Highlight primary menu item when sidebar menu item is selected’ is closed to new replies.