I have made a page with many sections and would like the nav bar to update to apply the active class to the section that is currently being viewed. Each section has it’s own custom link that points to that section in the navbar. But istead of changing to the active color when that section have been selected they are all blue because they are all on the same page.
Any suggestions on how to get this working how I want it?
Remove .current-menu.item class from the active menu.
Detect the current scroll position of the page.
Add the .current-menu-item class to the menu item that corresponds to the anchor at the current scroll position of the page.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
This free Support Forum relies on contributions from our support staffs and fellow Graphene themes users. While we endeavour to provide adequate and timely support, due to its voluntary nature responses are not guaranteed and may be delayed.
If you require urgent assistance, you may like to consider our Priority Support option.