This is a plugin for WordPress that adds shortcodes for easier use of the Bootstrap elements in your content.
This plugin won't do anything if you don't have website built with the Twitter Bootstrap framework. The plugin does not include the Bootstrap framework.
The plugin is tested to work with Bootstrap version 2.1.1
and WordPress 3.4.2
.
To install this plugin, just download it, and drop the folder in the wp-content/plugins/
. Then login to WordPress and activate the plugin.
The plugin doesn't support all Bootstrap elements yet, but most of them.
- Grid
- Buttons
- Alerts
- Code
- Labels
- Badges
- Icons
- Tables
- Accordion
- Tabs
- Wells
You use the shortcodes just like you would with any other shortcode, with the exception of tables, accordion and the tabs.
[button type="success" size="large" link="#"] … [/button]
[alert type="success"] … [/alert]
[code] … [/code]
[label type="success"] … [/label]
[badge type="success"] … [/badge]
[well] … [/well]
[icon type="arrow"]
[icon_white type="arrow"]
[row]
[span size="6"]
…
[/span]
[span size="6"]
…
[/span]
[/row]
[table type="striped" cols="#,First Name, Last Name, Username" data="1, Filip, Stefansson, filipstefansson, 2, Victor, Meyer, Pudge, 3, Måns, Ketola-Backe, mossboll"]
[collapsibles]
[collapse title="Collapse 1" state="active"]
…
[/collapse]
[collapse title="Copllapse 2"]
…
[/collapse]
[collapse title="Copllapse 3"]
…
[/collapse]
[/collapsibles]
[tabs]
[tab title="Home"]
…
[/tab]
[tab title="Profile"]
…
[/tab]
[tab title="Messages"]
…
[/tab]
[/tabs]