Badge
A Badge looks much like a lozenge. You can define different styles and sizes and also combine it with an HTML heading or a Bootstrap button. The shortcode adds a element. If you need an empty space before or after you need to add it manually.
Examples
Format
Parameters
Parameter | Description | Default |
---|---|---|
style | Defines the Bootstrap style. Supported values:
| primary |
type | Allowed values:
| badge |
displayas | The badge can be combined with a button or heading. Supported values:
| no value |
prefix | If combined with a button or heading, this will be the text of it. This parameter only works in combination with a displayas value. | no value |
buttonstyle | If combined with a button, this defines the button style. Supported values:
This parameter only works in combination with a displayas value. | primary |
buttonlink | If combined with a button, the button can link to a URL. Define it here. | no value |
target | If combined with a linked button, this defines the target of the link. | _self |
customtextcolor | If you want to change the text color of the badge style you can do it here by providing the hex color code in CSS format, e.g. #99000. | no value |
custombgcolor | If you want to change the background color of the badge style you can do it here by proividng the hex color code in CSS format, e.g. #000099. | no value |
Last updated