-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
I was trying to get <button></button> rendered in the front end when selecting a button plugin, instead I get <a href=""></a> with class="btn". I'm not sure if there is a better way to do this.
{% if instance.link_type == "btn" %}button{% else %}a href="{{ link }}"{% endif %} Opening tag
{% if instance.link_type == "btn" %} data-link="{{ link }}"{% endif %} Optional
{% if instance.link_type == "btn" %}button{% else %}a{% endif %} Closing tag
Metadata
Metadata
Assignees
Labels
No labels