Home › Forums › Support › Add smooth-scroll to Hero Button Link This topic has 9 replies, 2 voices, and was last updated 3 years, 6 months ago by David. Viewing 10 posts - 1 through 10 (of 10 total) Author Posts November 1, 2018 at 10:26 am #716623 Reto Suter Hi I try to let the Link from a Button on a Site Hero ‘smooth-scroll’ down to an anchor. How can i activate it for that Button-Link? I did tick the ‘smooth-scroll’ in the Customizer. Thank you Reto GeneratePress 2.1.4GP Premium 1.7.3 November 1, 2018 at 10:39 am #716630 DavidStaff Customer Support Hi there, you need to add the smooth-scroll class to the <a> tag e.g <a class="button smooth-scroll" href="url_link">My button</a> Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ November 1, 2018 at 11:00 am #716637 Reto Suter I think i have to put an URL there, no HTML? Html is possible as well? Regards Reto November 1, 2018 at 11:05 am #716639 DavidStaff Customer Support Can you link me to your site? You can edit your original topic and use the Site URL field for privacy. Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ November 1, 2018 at 12:48 pm #716706 Reto Suter Done. it‘s a site origin hero widget. Regards Reto November 1, 2018 at 12:57 pm #716717 DavidStaff Customer Support Sorry i can’t see the URL link? Can you retry adding it. Make sure you submit after making the edit. Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ November 1, 2018 at 1:09 pm #716731 Reto Suter Now? November 1, 2018 at 5:18 pm #716856 DavidStaff Customer Support i can’t see a way of adding the smooth-scroll classes to the site origin widgets. you can add the filter listed here, and it will make all # tag links smooth-scroll. https://docs.generatepress.com/article/generate_smooth_scroll_elements/ Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ November 2, 2018 at 8:06 am #717314 Reto Suter Yes, php instead of css does the Job. Thank you! Reto November 2, 2018 at 2:33 pm #717608 DavidStaff Customer Support Awesome. Glad to be of help. Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Author Posts Viewing 10 posts - 1 through 10 (of 10 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In