One Page Navigation has stopped working

Hi there,

One page navigation has been working on our site for around 3 years. It seems to have stopped working now. The custom links to various content bands work correctly, but navigation to a content band on the same page is not. When I click on the menu link nothing happens…even though the link is correct and the content band is correctly named.

www.groundedat.co.za

X-theme version 6.0.4
Cornerstone theme 3.0.4

Hi There,

Thanks for writing in!

I can see there are lots of JS errors on your site which is causing the issue.

Please check for any plugin conflict by disabling all third part plugin one by one. Remove all custom JS is there is any. Let us know if the issue still exists, we will look on to it.

Thanks

Hi there,

Thanks for that. I disabled all the custom JS and it’s working better now. It’s navigating correctly on the same page, but when I try to navigate from the one page to a content band on another page, it incorrectly goes to the content band of the same name on the same page.

i.e. While on ‘Coffee and Gathering’ at the photos content band, if I navigate to the about content band on the ‘Work’ page, it goes to the about content band on the ‘Coffee and Gathering’ page instead.

I’ve checked on my menus setup and I don’t see any issues there.

Thanks for you assistance

Sorry, just a further reply.

After disabling the custom JS, the mobile menu doesn’t collapse anymore when clicked if I view the website on my iphone.

Thanks

Hi,

You need a unique id even if it’s on a different page for this to work.

Can you share to us the Custom JS Code that you have removed.

Thanks

Hi Paul,

Thanks for the feedback. Is that a recent change, as I mentioned everything was working fine for the last 3 years with the content band names as they currently are. I have provided the login details in my first message if you’d like to look at the custom JS. It was all under the global custom JS under theme options. Otherwise, do I need to post the code on this thread?

Cheers

Hi there,

I just checked and one page navigation works correctly, it scrolls to position where the ID is. Would you mind providing a video recording of what’s happening in your end?

You have multiple one page navigation, and before it works, you have to go to that page first. It’s not gonna scroll if it’s linking outside.

Thanks!

Hi Rad,

I’m not sure how to upload a video here, so I’ll add the dropbox link to this reply.

You’ll see that selecting the ‘about’ or ‘photos’ link on the ‘work’ page menu while I’m on the ‘coffee and gathering’ page, results in going to the ‘about’ and ‘photos’ section on the current page…not the work page where it should be going. It only goes to the ‘work’ page when I select ‘facilities’ as this is not a content band name on the current page.

Hope that makes sense.

Hi there,

I see it now, it’s because you use the same ID for both pages. When the link hash matches any idea from the current page, then it will just scroll. And because both menu has same hashes, then it just scroll regardless of menu. Try changing them like #work-about, #work-photos and such.

Thanks!

Many thanks,

will do. Just out of curiosity, what caused this change? Up until recently the site was working completely fine. Was there a change in the algorithm with the latest update?

Cheers

Hi there,

By default the One Page Navigation setup by the theme does not support inter-page navigation which might be corrected by the custom JS code that you have added. As we cannot provide support for custom codes, what you can do it to double check the custom code you have added previously and update it accordingly to the latest theme structure.

Thank you.

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