I just switched my site from one page navigation to multiple pages. When I changed the menu, my items aren’t working. I checked and one page isn’t selected. The menu shows the correct links if you do a “open in a new tab” but when you click they won’t work. I cleared the cache and then deactivated all plugins and the problem only occurs when the Cornerstone plugin is activated.
Hello Laura,
Thanks for writing in!
Since you are not using a one page navigation set up, please make sure that all your custom menu item links is using the absolute urls and not relative urls.
Instead of using /location-appointments/#appointments, you will need to have http://example.com/location-appointments/#appointments
If you need anything else we can help you with, please let us know.
Thank you. The navigation is already using all absolute urls. The absolute urls don’t work unless you do a right-click open in new tab. Otherwise clicking on them does nothing. This is happening with the first two and their sub-items. The rest that are relative urls to anchors on the homepage work just fine (on the homepage). Also, as I mentioned, its a bit interesting that I do not encounter the problem if I deactivate Cornerstone, not sure if that’s related.
Hi Laura,
Could you try removing this custom code and test it again?
jQuery(function($){
$('.x-navbar .x-nav a').click(function(e){
e.preventDefault();
$('html,body').animate({
scrollTop: $('#' + $(this).attr('href').split("#").slice(-1)[0] ).offset().top},700 ,'swing');
});
});
It’s triggering an error and perhaps it’s not needed anymore.
Thanks!
Thanks so much! I totally missed that!
You’re most welcome!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.