16 September, 2020

Elementor: The Onepager Trick

 


Here is the onepager trick for WordPress in Elementor. Just add a custom HTML block. And yes you can do likewise in Gutenberg

The code will try to jump to a HTML element with the id goTOAbout, e.g.

<aside id="goTOAbout"> Lorem </aside>

That's it. If you want smooth scroll, do this in your stylesheet:

html {
  scroll-behavior: smooth;
}

No comments: