Solved

Adding Smooth Scrolling Links and Buttons for Anchor Links

  • 29 April 2019
  • 2 replies
  • 116 views

Userlevel 1

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 😅

icon

Best answer by felipe_vimcar 2 May 2019, 09:41

View original

2 replies

Userlevel 7
Badge +4

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

Userlevel 1

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

Reply