Lewe Bootstrap Visuals for WordPress
  • Introduction
  • Installation
  • Shortcodes
    • Alert
    • Badge
    • Blockquote
    • Button
    • Button Group
    • Callout
    • Card
    • Jumbotron
    • Panel
    • Progress Bar
    • Spinner
  • Color Styles
  • Table
Powered by GitBook
On this page
  • Examples
  • Format
  • Parameters

Was this helpful?

  1. Shortcodes

Alert

PreviousShortcodesNextBadge

Last updated 2 years ago

Was this helpful?

The Alert Box is a panel basically. You can define the style, heading and more via shortcode paarmeters. The text in between the opening and closing shortcode tags is displayed in the panel.

Examples

[bsv-alert heading="Example Alert"]This is an alert box using the Bootstrap primary style.[/bsv-alert]

Format

[bsv-alert parameter="value" ...]your text here[/bsv-alert]

Parameters

Parameter
Description
Default

style

Defines the Bootstrap style. Supported values:

  • danger

  • dark

  • info

  • light

  • primary

  • secondary

  • success

  • warning

primary

heading

Heading of the alert box

Example alert

dismissable

Defines whether the alert box is dismissible by an ‘x’ button in the upper right corner. Supported values:

  • no

  • yes

no

width

By default, the alert box spans over the full width of the parent object. You can sepcify a specific width here, e.g. 500px or 50%.

100%