Is this a shortcode? If so, what plugin, theme, or code is providing it?
It isn’t HTML. HTML doesn’t use square brackets in that context. You need
As said, this seems like a shortcode. Check the theme documentation (if avalible), it should be thoroughly explained there.
On second thought, if i am not mistaken, is this what the code you posted looks like?
[button style="glass" size="small" icon="arrow-dark" textcolor="#f5f0f0" bgcolor="#0a88f7"] <a>Download E-book</a>[/button]
…considering there is a link in your text going nowhere. If so, then the explanation is easy, you just need to add the destination for the link, like this;
[button style="glass" size="small" icon="arrow-dark" textcolor="#f5f0f0" bgcolor="#0a88f7"] <a href="http://www.YOUR-LINK-HERE.com">Download E-book</a>[/button]
Thanks very much for your help on this. Yes, this is a shortcode for a button in the Natural theme. There wasn’t anything about linking to the buttons in the documentation but after playing around with your suggestion, I found the magic formula that worked. The trick was inserting brackets around the a href. Here it is just fyi:
[button style=”glass” size=”small” icon=”arrow-dark” textcolor=”#f5f0f0″ bgcolor=”#0a88f7″ [a href=”http:”]Read More[/button]
- The topic ‘How can I link a button to a URL?’ is closed to new replies.