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

    How in the world do you make the shortcode “buttons” actually link to something? The documentation doesn’t show it, and my attempts have failed. I’ve tried putting the anchor both inside and outside of the button shortcode. When put outside like the example here my anchor gets ignored and the button goes to the page it’s on (putting it inside the button codes doesn’t work at all):

    <a href="http://www.example.com"/>
    [button size="xl" color="green" text="light"]
    Test Button
    [/button]
    </a>

    #97299

    Hello, use this code

    Code:

    <a href="#yourbuttonname">click</a>
    
    <a name="yourbuttonname">[button size="xl" color="green" text="light"]
    Test Button
    [/button]</a>

    Good luck!

    #97300

    I think we had a miscommunication because of the term “anchor.” What your code does is not what I’m attempting. I’m trying to HYPERLINK to another page on the website. I want the button to take the visitor to the other page. Sounds easy enough I know. Can’t make it work though.

    #97301

    Let’s back up… Trying to add code again:

    <a href="http://www.example.com"/>
    [button size="xl" color="green" text="light"]
    Test Button
    [/button]
    </a>

    This code does NOT link like it should. Please advise!

    #97302

    Good, my apologies…

    Found another temporary code for you;

    <a class="avia-button light green xl" href="http://www.google.com" target="_blank"><span class="avia-"> hello text </span></a>

    #97303

    Great, that worked. Thank you!

    #97304

    Glad you were able to get it figured out. Don’t forget you can use the shortcode editor to customize your buttons and that they can have the url and target in the shortcode like this:

    [button link="http://google.com" text="grey" window="yes"]Button Title[/button]

    Regards,

    Devin

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Adding anchors to buttons’ is closed to new replies.