Shortcodes

Since many people have been raving about all the great styles and components in Bootstrap, I decided to create a slew of shortcodes to make it easier for users to add some of the them to their site.

Check out the examples below to see them in action:

Buttons

[button]Default[/button]

Anchor Tag [button href="http://bavotasan.com"]Anchor Tag[/button]

[button style="primary"]Primary[/button]

[button style="info"]Info[/button]

[button style="success"]Success[/button]

[button style="warning"]Warning[/button]

[button style="danger"]Danger[/button]

[button style="link"]Link[/button]

[button size="lg"]Default[/button]

[button size="sm"]Default[/button]

[button size="xs"]Default[/button]

Alerts

This is the default alert box
[alert]This is the default alert box[/alert]

Warning!

This is the danger alert box

[alert style="danger"]<h4>Warning!</h4>This is the danger alert box[/alert]

Success! This is the success alert box
[alert style="success"]<b>Success!</b> This is the success alert box[/alert]

This is the information alert box
[alert style="info"]This is the information alert box[/alert]

Jumbotron

Unit Title

This is a simple jumbotron, very similar to a sticky posts on the home page.

[jumbotron]
<h1>Unit Title</h1>
<p>This is a simple jumbotron unit, very similar to a sticky posts on the home page.</p>
[/jumbotron]

Images

[image style="rounded"]http://demos.bavotasan.com/gridiculous-pro/files/2012/09/Pixmac000022074903_square.jpeg[/image]
[image style="circle"]http://demos.bavotasan.com/gridiculous-pro/files/2012/09/Pixmac000022074903_square.jpeg[/image]
Note: In order for the circular image to work properly, your original image should be square. Otherwise, it will look like an oval.
[image style="thumbnail"]http://demos.bavotasan.com/gridiculous-pro/files/2012/09/Pixmac000022074903.jpeg[/image]
Heads up! The rounded and circular image shortcode will not display correctly in IE7-8 due to the lack of border-radius support.

Columns

Nullam quis risus eget urna mollis ornare vel eu leo. Aenean lacinia bibendum nulla sed consectetur. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Nulla vitae elit libero, a pharetra augue. Aenean lacinia bibendum nulla sed consectetur.

Nulla vitae elit libero, a pharetra augue. Etiam porta sem malesuada magna mollis euismod. Nullam id dolor id nibh ultricies vehicula ut id elit. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Cras mattis consectetur purus sit amet fermentum. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Nullam id dolor id nibh ultricies vehicula ut id elit. Vestibulum id ligula porta felis euismod semper. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.

Etiam porta sem malesuada magna mollis euismod. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Maecenas faucibus mollis interdum. Cras mattis consectetur purus sit amet fermentum.

[columns size="2" gap="20px"]Your text[/columns]

Heads up! The columns shortcode will not display correctly in IE due to the lack of support.

Carousel

[carousel slide="slide"]
   [carousel_image active="active" title="First Thumbnail label" caption="Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit."]http://twitter.github.com/bootstrap/assets/img/bootstrap-mdo-sfmoma-01.jpg[/carousel_image]
   [carousel_image title="Second Thumbnail label" caption="Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit."]http://twitter.github.com/bootstrap/assets/img/bootstrap-mdo-sfmoma-02.jpg[/carousel_image]
   [carousel_image title="Third Thumbnail label" caption="Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit."]http://twitter.github.com/bootstrap/assets/img/bootstrap-mdo-sfmoma-03.jpg[/carousel_image]
[/carousel]
Note: If you’re not a fan of the slide effect in the carousel, just remove the slide="slide" parameter from the carousel shortcode.

Tooltips

Hover over me   Left Tooltip   Right Tooltip   Bottom Tooltip

[tooltip tip="This is a tooltip" placement="left"]Your text[/tooltip]

Note: Placement options are top, bottom, left and right. The default is top.

Tabs

Integer posuere erat a ante venenatis dapibus posuere velit aliquet.
Donec id elit non mi porta gravida at eget metus.
Nulla vitae elit libero, a pharetra augue.
[tabs]
   [tabs_nav]
      [tabs_nav_item active="active" id="first"]First Tab[/tabs_nav_item]
      [tabs_nav_item id="second"]Second Tab[/tabs_nav_item]
      [tabs_nav_item id="third"]Third Tab[/tabs_nav_item]
   [/tabs_nav]
   [tabs_content]
       [tabs_content_item active="active" id="first"]Integer posuere erat a ante venenatis dapibus posuere velit aliquet.[/tabs_content_item]
       [tabs_content_item id="second"]Donec id elit non mi porta gravida at eget metus.[/tabs_content_item]
       [tabs_content_item id="third"]Nulla vitae elit libero, a pharetra augue.[/tabs_content_item]
   [/tabs_content]
[/tabs]
BUY NOW
Select a theme: