Archived topic
Smooth Scroll Button not working
5 replies · Started by scometamus on August 24, 2022
Dear GP-team,
looked into some forum posts and the official documentation about smooth scroll, but wasn't able to activate it for my anchor link button.
Hope you can assist me here :)
Thanks
Hi there,
You need to add smooth-scroll class to the <a> element.
https://wordpress.com/support/wordpress-editor/adding-additional-css-classes-to-blocks/
But WP's button block adds class to the <div> not <a>, so it won't work.
Can you try the buttonsblock from GenerateBlocks?
https://docs.generateblocks.com/article/buttons-overview/
I wasn't able to style GP's button as wished, so I switched to WP's button. Any idea how I can make it round?
You can set the border radius in GB's button.
thank you very much, that worked!
You are welcome :)