-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Button tag render #150
Comments
I'm not sure why you would prefer a button tag. A button cannot have a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 tagThe text was updated successfully, but these errors were encountered: