You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 23, 2026. It is now read-only.
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
I was trying to get
<button></button>rendered in the front end when selecting a button plugin, instead I get<a href=""></a>withclass="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