This post will show how to create different kinds of notice or alert boxes such as a regular box, as well as info, success, warning, and danger.
In all cases, use the paired shortcode notice
with the notice type (info, success, warning, danger). Leave the notice type out for the regular notice box. You can use markdown inside.
This is the default notice. You can use Markdown.
This is an info notice. Info means information
This is a success notice. Great Success.
This is a warning notice. Don’t use
GOTO
statements!
This is a danger notice. Smoking is fatal.
For a regular notice box,
{% notice %}
This is the default notice. You _can_ use Markdown.
{% endnotice %}
For an info notice box,
{% notice "info" %}
This is an info notice. Info means [information](https://en.wikipedia.org/wiki/Information)
{% endnotice %}
For a success notice box,
{% notice "success" %}
This is a success notice. Great Success.
{% endnotice %}
For a warning notice box,
{% notice "warning" %}
This is a warning notice. Don't use `GOTO` statements!
{% endnotice %}
For a danger notice box,
{% notice "danger" %}
This is a danger notice. **Smoking is fatal**.
{% endnotice %}