burnedfaceless
asked on
Creating a Shortcode with attributes
I want to create a shortcode with attributes for url and (link) text.
So the code
<a class="btn btn-lg btn-primary" role="button" href="http://example.com">Link Text</a>
So the code
<a class="btn btn-lg btn-primary" role="button" href="http://example.com">Link Text</a>
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Open in new window
Then in your functions.php or pluginOpen in new window
You can read more about this here