Notices

Get the user’s attention with a notice. These can reflect your themes colors, and be dismissed once read. Notices are used in various areas of the theme: cookies notices, contact and comment form validation.

Usage & Examples

When creating a notice, you must set the type attribute. This shortcode requires and opening and closing tag, insert your message between.

[notice type="primary"]This is a primary color notice.[/notice]
[notice type="accent"]This is an accent color notice.[/notice]
[notice type="approve"]This is an approve color notice.[/notice]
[notice type="caution"]This is a caution color notice.[/notice]
[notice type="error"]This is an error color notice.[/notice]
[notice type="info"]This is an info color notice.[/notice]
This is a primary color notice.
This is an accent color notice.
This is an approve color notice.
This is a caution color notice.
This is an error color notice.
This is an info color notice.

Notice Titles

You can add a color matching heading to your notice by setting the title attribute.

[notice type="primary" title="Notice Title"]This is a primary color notice.[/notice]
[notice type="accent" title="Notice Title"]This is an accent color notice.[/notice]
[notice type="approve" title="Notice Title"]This is an approve color notice.[/notice]
[notice type="caution" title="Notice Title"]This is a caution color notice.[/notice]
[notice type="error" title="Notice Title"]This is an error color notice.[/notice]
[notice type="info" title="Notice Title"]This is an info color notice.[/notice]

Notice Title

This is a primary color notice.

Notice Title

This is an accent color notice.

Notice Title

This is an approve color notice.

Notice Title

This is a caution color notice.

Notice Title

This is an error color notice.

Notice Title

This is an info color notice.

Dismissible Notices

Set the dismissible attribute to true, and allow the user to remove the message once read. Try it now.

[notice type="approve" dismissible="true"]This notice is dismissible.[/notice]
This notice is dismissible.