Menu items all enabled

Hey there,
I got one page scrolling enabled in my menu using IDs. I’am experiencing this weird behavior of all my menu items being active. Thanks for your help!

Hi @zero_to_one,

Thanks for reaching out. I’ve checked your site and I think it’s because of how the links are added. Could you try removing the full domain from the URL and replacing with just the hash? So it would be #about instead of http://example.com/#about.

This should prevent WordPress from adding extra classes that are used when the current URL matches the page you are viewing.

Yes, but this would require me to have a seperate navigation for my other pages :frowning:

Hello @zero_to_one,

One page navigation is used to find the section within the same page. So if you are on any other pages, you need to mention the URL and then #id of the section. But remember it does not work the same if you set in a single menu. I would suggest you use a different menu one for the Home page and another for the inner pages. Now as you are using the Pro, please create two different headers for the Home page and Inner page and assign respective menus to the element you are using.
In that way, the inner page menu will have the full URL with the #id link and the home page will have the #id link only.

The article will help you to setup one-page navigation.

Hope that will help
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.