Dano007 Dano007 - 3 months ago 24
HTML Question

Turn shortcode into link

Is it possible to make this shortcode into a clickable link? I have a link for a button, but I want the complete box to be the link

[infobox color="#dd3333" textcolor="#ffffff" icon="arrow-circle-o-right"][/infobox]


Can I not wrap it within an a tag?

<a [infobox color="#dd3333" textcolor="#ffffff" icon="arrow-circle-o-right"][/infobox]</a>

Answer

Of course you can, you just need to do it with the correct syntax. For example, your would be:

<a href="yourlink.html"> [infobox color="#dd3333" textcolor="#ffffff" icon="arrow-circle-o-right"]       [/infobox]</a>

And that's it.
Have faith in your endevours!

Comments