Card

A Bootstrap card with optional header, image, title, subtitle and footer.

Card examples
Card examples

Examples

[bsv-card heading="Heading" title="Title" subtitle="Subtitle" footer="Footer"]This is the card content.[/bsv-card]
[bsv-card heading="Heading" width="400px" style="info" img="/wp-content/uploads/2019/12/duelmen.jpg"]City Gate[/bsv-card]

Format

[bsv-card parameter="value" ...]your content here[/bsv-card]

Parameters

Parameter Description Default
style Optional Bootstrap color style: primary, secondary, success, danger, warning, info, light, dark. An empty value renders a plain card. empty
heading Optional card header text. empty
heading_level Heading level for the header: h1–h6. h5
title Optional card title. empty
title_level Heading level for the title: h1–h6. h5
subtitle Optional card subtitle. empty
subtitle_level Heading level for the subtitle: h1–h6. h6
width Optional width using px, %, em or rem. full width
float_left Float the card left: yes or no. no
outline Use the outline variant: yes or no. Only applies when style is set. no
img URL of an image displayed above the card body. empty
footer Optional card footer text. empty

In 4.0.0 a card without style is a plain card. The old behavior that forced the primary style is gone.

Last updated: