Title: Smooth Scroll on Button
Last modified: August 30, 2021

---

# Smooth Scroll on Button

 *  Resolved [Sebastian Schwarz](https://wordpress.org/support/users/se-schwarz/)
 * (@se-schwarz)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/smooth-scroll-on-button/)
 * Hi there,
 * considering upgrade to premium, but have presale question and a problem.
 * When adding a button to hero component with an extra css class (“smooth-scroll”
   provided by my theme GeneratePress) it doesn’t scroll smooth to my anchor element.
 * Following your guide on the FAQs doesn’t work either, because it’s only affecting
   text links, but not buttons. The additional class adds it to the div container
   around, not the link itself.
 * Any solution for this? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Rohan Khandeparkar](https://wordpress.org/support/users/rohanvc/)
 * (@rohanvc)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/smooth-scroll-on-button/#post-14817251)
 * Hi Sebastian,
 * A workaround in this case can be to add the link via raw html element with class
   attached to it. The link can then be styled using custom CSS to make it look 
   like a button.
 * Thanks,
 *  Thread Starter [Sebastian Schwarz](https://wordpress.org/support/users/se-schwarz/)
 * (@se-schwarz)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/smooth-scroll-on-button/#post-14825650)
 * Hi! Yes, this is what I did now, but it isn’t the best and comfortable way.
 * Maybe you could add an class field for that link inside the button itself in 
   a future version.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Smooth Scroll on Button’ is closed to new replies.

 * ![](https://ps.w.org/visualcomposer/assets/icon-256x256.png?rev=2163470)
 * [Visual Composer Website Builder](https://wordpress.org/plugins/visualcomposer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visualcomposer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visualcomposer/)
 * [Active Topics](https://wordpress.org/support/plugin/visualcomposer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visualcomposer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visualcomposer/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Sebastian Schwarz](https://wordpress.org/support/users/se-schwarz/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/smooth-scroll-on-button/#post-14825650)
 * Status: resolved