[How-to] Add a Smart "Back to Top" Button

  • 4 February 2016
  • 32 replies
  • 1545 views


Show first post

32 replies

Badge

Yes, that is correct!

Userlevel 4
Badge

Hmm,,, I think this might have something to do with the fact that lightboxes are iframed on top of the main page. I created this page, which has the back to top button both on the main page and in the lightbox. Whilst the fade in and out effect works just fine, as well as the scroll to top function, it just doesn’t move along when I scroll down the page. Is that what you’re experiencing too?

Badge

Yes, same issue

Userlevel 4
Badge

OK. I’ll have a play around and see if I can get it to work in the lightbox. For the time being, you could add a static button at the bottom of the lightbox which scrolls them to the top as that function is working.

Badge

Thank you! Do you have the tutorial on that to by chance? I’ve only been able to find ones on the “smart” back to top button

Userlevel 4
Badge

We have the official documentation on anchor links and smooth scrolling here:
https://documentation.unbounce.com/hc/en-us/articles/360022719471-Adding-Anchor-Links-Smooth-Scrolling-in-the-Classic-Builder

 

Badge

Thank you! It worked with the lightboxes!

Reply