Skip to content

Button tag render #150

@khrizo

Description

@khrizo

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions