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:
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.