This article shows how to use the alert
shortcode.
Syntax#
Inline#
1{{< alert [type] >}}INLINE ALERT{{< /alert >}}
Block#
1{{< alert [type] >}}
2BLOCK ALERT
3{{< /alert >}}
The parameter
type
is optional. Default toinfo
, availiable values:info
,success
,warning
anddanger
.
With Heading#
1{{< alert [type] >}}
2{{< alert-heading >}}Well Done!{{< /alert-heading >}}
3ALERT MESSAGE
4{{< /alert >}}
Examples#
Info
Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.
Warning
Danger
Comments