Site logo

[Resolved] HTML anchor button header element

Home Forums Support [Resolved] HTML anchor button header element

Home Forums Support HTML anchor button header element

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2116455
    Renske

    Hi there,

    I want the button in my header element for my homepage to link to a specific section on the samepage. I know how to do this with html anchors, but how do I create a html anchor I can use in an element? See short video in private info for clarification.

    Thanks!

    #2116608
    David
    Staff
    Customer Support

    Hi there,

    1. Select the Block that you want the anchor link to jump to eg. a GB Container Block
    1.1 In Advacnced > HTML Anchor add a unique id eg. my-section

    2. In your header element we create an anchor link using this HTML:

    <a class="button" href="#my-section">Your button text</a>

    So whatever HTML anchor you used eg. my-section you prefix it with a # in your ahref ie. #my-section

    #2120505
    Renske

    Thanks David! 🙂

    #2120801
    David
    Staff
    Customer Support

    You’re welcome!

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