Anchor links, menu, and highlight current
-
I’m trying to resolve a problem with anchor (or jump) links in the main wordpress menu.
If I place a number of jump links to the same page within the menu, it highlights all of the jump links to that page, instead of the one clicked. This is an issue when I navigate to the page with a number of jump links via the menu from another page Is there a workaround to this issue?
I know this has something to do with the php inserting the current-menu-item class to highlight a link in the menu based on the URL of one’s page, but is there a way to filter out current-menu-item class based on the # for the anchor links?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Anchor links, menu, and highlight current’ is closed to new replies.