Alert Block (Bootstrap)

Table of Contents
Frontend Example
Backend Example

Lazy Block Edit

First, you need to add block Name, Slug, Icon, Category, Description, and Keywords. The you can start to adding Controls:

  • Textarea control named Content
  • Select control named Type
  • Checkbox control named Dismissible

Select control Choices value:

Then you need to add Code to output your Alert block on frontend:


For Editor HTML just add {{{content}}} to preview Content control value.

Use in Theme

You can add this PHP code in your theme or plugin to use this Alert block:

Was this page helpful?