Shortcodes

Every component is available as a shortcode. Shortcodes can be nested where the component accepts content, for example buttons inside a button group or accordion items inside an accordion.

Bootstrap Visuals component showcase
Alerts, badges, buttons, button groups, cards, spinners and progress bars

All 25 shortcodes

Component Shortcode Since
Accordion [bsv-accordion] 4.0.0
Accordion item [bsv-accordion-item] 4.0.0
Alert [bsv-alert] 1.0.0
Badge [bsv-badge] 1.0.0
Blockquote [bsv-blockquote] 1.0.0
Button [bsv-button] 1.0.0
Button group [bsv-button-group] 2.0.0
Card [bsv-card] 1.0.0
Code [bsv-code] 1.0.0
Collapse [bsv-collapse] 1.0.0
Column [bsv-column] 1.0.0
Container [bsv-container] 1.0.0
Highlight [bsv-highlight] 2.0.0
Lead [bsv-lead] 2.0.0
List [bsv-list] 2.0.0
Modal [bsv-modal] 1.0.0
Panel [bsv-panel] 1.0.0
Popover [bsv-popover] 2.0.0
Progress bar [bsv-progress] 1.0.0
Row [bsv-row] 1.0.0
Spinner [bsv-spinner] 2.0.0
Table [bsv-table] 2.0.0
Table wrap [bsv-table-wrap] 2.0.0
Text [bsv-text] 2.0.0
Tooltip [bsv-tooltip] 2.0.0

Browse by category

Layout: bsv-container, bsv-row, bsv-column

Content: bsv-alert, bsv-badge, bsv-blockquote, bsv-card, bsv-code, bsv-highlight, bsv-lead, bsv-list, bsv-panel, bsv-table, bsv-table-wrap, bsv-text

Interactive: bsv-accordion, bsv-accordion-item, bsv-button, bsv-button-group, bsv-collapse, bsv-modal, bsv-popover, bsv-progress, bsv-spinner, bsv-tooltip

Conventions

  • Boolean attributes use yes and no; the default is always no unless the parameter table says otherwise.
  • Width and height values accept px, %, em and rem, for example width="400px" or width="50%".
  • Colors accept three- or six-digit hex values and rgb() values.
  • Shortcode content is escaped with wp_kses_post; raw HTML is not supported in shortcode content.
  • Every emitted class uses the bsv- prefix.

Last updated: