Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

localScroll from link in header puts hash in addressbar

Home / Forums / Ascend Theme / localScroll from link in header puts hash in addressbar

This topic is: Resolved
[Resolved]
Posted in: Ascend Theme
March 25, 2018 at 8:38 am

On our site srp.org.uk I have the following in the footer script document ready function:

jQuery(‘body’).localScroll({offset: -200,filter:’:not(.tabAnchor):not(.accordion-toggle)’ ,duration:0});

This works fine, except that if you click the menu item Branches/Branch List then it appends #menu-branches to the address bar. I have checked (on a test site where the link is actually ‘#menu-srp-branches’) that
– the menu item does indeed contain just “#menu-srp-branches
– this happens if I place an anchor link elsewhere in the header, so it doesn’t seem to depend on it being in a menu
– it does not happen if I place a link #menu-srp-branches in the body of the page
– it happens whether the header is sticky or not
– it happens even if I explicitly set the option hash:false
– it happens even if I use jQuery.localScroll instead of jQuery(‘body’).localScroll

I’m baffled – can you help please?

  • The forum ‘Ascend Theme’ is closed to new topics and replies.