[Resolved] Smooth Scroll Button not working

Home Forums Support [Resolved] Smooth Scroll Button not working

Home Forums Support Smooth Scroll Button not working

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2322600
    scometamus

    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

    #2322679
    Ying
    Staff
    Customer Support

    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/

    #2322741
    scometamus

    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?

    #2322797
    Ying
    Staff
    Customer Support

    You can set the border radius in GB’s button.

    #2322806
    scometamus

    thank you very much, that worked!

    #2322843
    Ying
    Staff
    Customer Support

    You are welcome ๐Ÿ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.