I have a (client requested) menu with one parent link that has a bunch of child links to the same page but with different anchor text.
Furthermore there are two parent level items in the menu that are the same page but with different navigation labels.
They are all getting "active" class and it's highlighting way too many menu items.
What's the best way to get control of my automatic "active" classes on the page I am viewing?
If this helps visualize:
- Nav Menu
- page1.html (Home)
- page2.html (about us)
- page3.html (lots of stuff)
- page3.html#some (some stuff)
- page3.html#tab1 (first tab)
- page3.html#tab2 (second tab)
- page3.html#tab3 (third tab)
- page4.html (fourth thing)
So basically when I go to any single place on page3, All of those items are highlighted via WP automatically adding the "active" class:
- Nav Menu
- page1.html (Home)
- page2.html (about us)
- page3.html (lots of stuff)***
- page3.html#some (some stuff)***
- page3.html#tab1 (first tab)***
- page3.html#tab2 (second tab)***
- page3.html#tab3 (third tab)***
- page4.html (fourth thing)
It doesn't care that they are different #anchor text.
How do I get more specific handling for urls that are so similar?
Thanks in advance