Skip to content
Jo Dickson edited this page Mar 6, 2018 · 11 revisions

[badge]

Generates a badge.

Attributes

Shortcode Attribute Name Description Default Value
href Badge Link URL for the badge. If provided, the badge will be rendered as a link.
rel Link object relationship (rel) The relationship between the link and target object (if the badge is displayed as a link). Separate each link type with a single space.
new_window New Window Open link in a new window (if the badge is displayed as a link) false
class CSS Classes Separate each class with a single space. Refer to the Athena Framework documentation for available classes. badge is always applied; badge-primary is added if no other classes are provided
id ID ID attribute for the badge. Must be unique.
style Inline Styles Any additional styles for the badge.

Examples

[badge]My badge text here[/badge]


[badge class="badge-complementary"]My badge text here[/badge]


[badge href="http://www.ucf.edu/" new_window="true"]My badge text here[/badge]


[badge class="badge-inverse" style="color: purple;"]My badge text here[/badge]


<h2>Example heading [badge]My badge text here[/badge]</h2>

Clone this wiki locally