TK Shortcode Link
Create links with a shortcode. Comes in handy in places where HTML tags aren’t allowed and/or keep getting encoded or something. Basically, just a utility plugin. Accepts 3 parameters: url target (automatically adds the leading underscore) class Examples: [tklink url="https://www.nike.com/"]Just do
Create links with a shortcode. Comes in handy in places where HTML tags aren’t allowed and/or keep getting encoded or something.
Basically, just a utility plugin.
Accepts 3 parameters:
- url
- target (automatically adds the leading underscore)
- class
Examples:
- [tklink url="https://www.nike.com/"]Just do it[/tklink] Outputs: <a class="tklink" href="https://www.nike.com/">Just do it</a>
[tklink url="https://www.wordpress.org/"][/tklink]
- Outputs: <a class="tklink" href="https://www.wordpress.org/">https://www.wordpress.org/</a>
[tklink url="https://www.google.com/" class="googlie" target="blank"]A googglie Google link that will open in a new tab[/tklink]
- Outputs: <a class="googlie" href="https://www.google.com/" target="_blank">A googglie Google link that will open in a new tab</a>
Developers may contribute at https://github.com/cliffordp/tk-shortcode-link
FYI:
- All links have a class of tklink added unless you specify your own class per link (see examples above)
- No styling of tklink or otherwise is added via this plugin.
- If you don’t know what classes are, you can ignore. It’s for styling (i.e. look and feel).
Frequently asked questions.
What if I find an error?
Please follow these steps to troubleshoot:
- 01Disable all other plugins
- 02Activate one of the default WordPress themes (e.g. Twenty Nineteen)
- 03Enable WP_DEBUG in wp-config.php.
If you no longer have an error, your issue is not with this plugin.