Use the alert shortcode to display a contextual feedback message.
Use the alert
shortcode to display a contextual feedback message. The inner content is used as alert text.
The shortcode supports the following arguments:
Argument | Required | Description |
---|---|---|
color | No | Optional theme color of the alert, either “primary” (default), “secondary”, “success”, “danger”, “warning”, “info”, “light”, “dark”, “white” or “black”. |
dismissible | No | Optional flag to indicate the alert is dismissible, defaults to false. |
As an example, the following shortcode displays a simple alert.
{{< alert color="danger" >}}
A simple danger alert—check it out!
{{< /alert >}}