Adding Smooth Scrolling Links and Buttons for Anchor Links


Hi guys,

I followed the instruction of the “Adding Smooth Scrolling Links and Buttons for Anchor Links” article. Adding the JavaScript turns out to break the links - anyone an idea why this happens?

Thanks :sweat_smile:


Hmm, that’s strange. Are you sure you copied the smooth scroll code exactly as shown in the documentation into the “before body end tag” location using the Javascript panel on your page?

And what format are you using for the anchor links? It should just be the element ID of whatever you’re trying to scroll to, so something like this: #lp-pom-box-79

1 Like

Hi Nicholas, thanks for your reply. Actually, the problem was the activated checkbox “Pass through URL parameters” - Thank you for your support!