[Resolved] Anchor between button and container

Home Forums Support [Resolved] Anchor between button and container

Home Forums Support Anchor between button and container

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1618701
    Matthieu

    Hello, how could I do so that when I click on a button the page goes down to the associated container?

    Thanks.

    #1618738
    David
    Staff
    Customer Support

    Hi there,

    select the Container you want to jump to in the Block Editor. Go Advanced > HTML anchor and add your name eg. section-1

    Then select your Button and give it a URL of #section-1

    This creates the jump link to that section.

    If you want it to smooth scroll – then select button block and in Advanced > Additional CSS Class(es) add: smooth-scroll

    Then in Customizer > General enable the smooth-scroll option

    #1618818
    Matthieu

    its ok ! Thanks ! 😄

    #1619659
    David
    Staff
    Customer Support

    Glad to hear that

    #1822665
    Muhammad

    I want to appear section 1 only and hide sections 2 and 3 in the page by clicking respective custom link from menu. By clicking html anchor button from section 1 it will appear section 2 only but section 1 and 3 will be disappeared from the page. Similarly it will appear section 3 when clicking anchor button from section 2. But by this time both section 1 and 2 will be disappeared. All sections will be created in one page by containers from GenerateBlocks. Thanks.

    #1822707
    David
    Staff
    Customer Support
    #1822713
    Muhammad

    Okay, thanks

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