BootstrapPress

Help file.

BootstrapPress offers Twitter Bootstrap styles with WordPress Shortcodes. The aim is to make adding elements such as Tabs, Grid, Buttons...) to your WordPress blog as simple as possible.

Just upload the plugin and activate it. BootstrapPress requires WordPress 3.5, but the latest version is always recommended.

You can use the Twitter Bootstrap HTML Code directly or the provided the Shortcodes. The Shortcodes are provided for ease of use especially if you are in the WordPress editor. For more information about Shortcodes.

We are working on a Premium version which will provide a handful of features.

  • Visual Shortcodes Editor
  • More Advanced Shortcodes (Slider, Google Maps, Syntax Highlighter...)
  • Customizable Bootstrap Theme
  • Priority Support

You can sign-up for our announcement newsletter in our BootstrapPress site to get notified when the Premium version is launched

Hero Unit

A lightweight, flexible component to showcase key content on your site. It works well on marketing and content-heavy sites.

Usage
    [bs_hero_unit]
        ... Put content here
    [/bs_hero_unit]
Output
    <div class="twitter_bs hero-unit">
        ... Put content here
    </div>

Page Header

A simple shell for an h1 to appropriately space out and segment sections of content on a page. It can utilize the h1's default small, element as well most other components (with additional styles).

Usage
    [bs_page_header]
        ... Put content here
    [/bs_hero_unit]
Output
    <div class="twitter_bs page-header">
        ... Put content here
    </div>

Well

Use the well as a simple effect on an element to give it an inset effect.

Usage
    [bs_well size=""]
        ... Put content here
    [/bs_well]
Attributes
  • size null, small, large
Output
    <div class="twitter_bs well">
        ... Put content here
    </div>

Headlines

All HTML headings, h1 through h6 are available.

Usage
    [bs_h1]h1. Heading 1[/bs_h1]
    [bs_h2]h2. Heading 2[/bs_h2]
    [bs_h3]h3. Heading 3[/bs_h3]
    [bs_h4]h4. Heading 4[/bs_h4]
    [bs_h5]h5. Heading 5[/bs_h5]
    [bs_h6]h6. Heading 6[/bs_h6]
Output
    <h1 class="twitter_bs">h1. Header 1<h1>
    <h2 class="twitter_bs">h2. Header 2<h2>
    <h3 class="twitter_bs">h3. Header 3<h3>
    <h4 class="twitter_bs">h4. Header 4<h4>
    <h5 class="twitter_bs">h5. Header 5<h5>
    <h6 class="twitter_bs">h6. Header 6<h6>

Paragraph

Usage
    [bs_p type="" color=""]
        .. Put content here
    [/bs_p]
Attributes
  • Type null, lead
  • Color null, muted, text-warning, text-error, text-info, text-success
Output
    <p class="twitter_bs">
        .. Put Content here
    </p>

Emphasis

Make use of HTML's default emphasis tags with lightweight styles.

Usage
    [bs_small]Highlighted Content[/bs_small]
    [bs_bold]Highlighted Content[/bs_bold]
    [bs_italic]Highlighted Content[/bs_italic]
Output
    <small class="twitter_bs">Highlighted Content<small>
    <bold class="twitter_bs">Highlighted Content<bold>
    <italic class="twitter_bs">Highlighted Content<italic>

Abbreviations

Stylized implementation of HTML's abbr element for abbreviations and acronyms to show the expanded version on hover. Abbreviations with a title attribute have a light dotted bottom border and a help cursor on hover, providing additional context on hover.

Usage
    [bs_abbr title="HyperText Markup Language" type=""]HTML[/bs_abbr]
Attributes
  • Title User input
  • Type null, initialism
Output
    <abbr class="twitter_bs" title="HyperText Markup Language">HTML<abbr>

Blockquotes

For quoting blocks of content from another source within your document.

Usage
    [bs_blockquote display=""]
        ... Put content here
    [/bs_blockquote]
Attributes
  • Display null, pull-right
Output
    <blockquote class="twitter_bs">
        ... Put content here
    <blockquote>

Icons

140 icons in sprite form, available in dark gray (default) and white, provided by Glyphicons.

Usage
    [bs_icon icon="search" color=""]
Attributes
  • Icon 140 icons, find them here and remove icon-
  • Color null, white
Output
    <i class="twitter_bs icon-search"></i>

Labels

Usage
    [bs_label_default]Default[/bs_label_default]
    [bs_label_success]Success[/bs_label_success]
    [bs_label_warning]Warning[/bs_label_warning]
    [bs_label_important]Important[/bs_label_important]
    [bs_label_info]Info[/bs_label_info]
    [bs_label_inverse]Inverse[/bs_label_inverse]
Output
    <span class="twitter_bs label">Default<span>
    <span class="twitter_bs label label-success">Success<span>
    <span class="twitter_bs label label-warning">Warning<span>
    <span class="twitter_bs label label-important">Important<span>
    <span class="twitter_bs label label-info">Info<span>
    <span class="twitter_bs label label-inverse">Inverse<span>

Badges

Usage
    [bs_badge_default]Default[/bs_badge_default]
    [bs_badge_success]Success[/bs_badge_success]
    [bs_badge_warning]Warning[/bs_badge_warning]
    [bs_badge_important]Important[/bs_badge_important]
    [bs_badge_info]Info[/bs_badge_info]
    [bs_badge_inverse]Inverse[/bs_badge_inverse]
Output
    <span class="twitter_bs badge">Default<span>
    <span class="twitter_bs badge badge-success">Success<span>
    <span class="twitter_bs badge badge-warning">Warning<span>
    <span class="twitter_bs badge badge-important">Important<span>
    <span class="twitter_bs badge badge-info">Info<span>
    <span class="twitter_bs badge badge-inverse">Inverse<span>

Buttons

Usage
    [bs_button href="#" type="" size="" state=""]Button Text[/bs_button]
Attributes
  • href User input
  • type null, primary, info, success, warning, danger, inverse, link
  • size null, large, small, mini
  • state null, disabled
Output
    <a href="#" class="twitter_bs btn">Button Text</a>

Table Element

Usage
    [bs_table strip="" border="" highlight="" size=""]
        ... Table content here
    [/bs_table]
Attributes
  • Strip null, striped
  • Border null, bordered
  • Highlight null, hover
  • Size null, condensed
Output
    <table class="twitter_bs table">
        ... Table content here
    </table>

Table Header

Usage
    [bs_head]
        ... Table header content
    [/bs_head]
Output
    <thead class="twitter_bs">
        ... Table header content
    </thead>

Table Body

Usage
    [bs_head]
        ... Table body content
    [/bs_head]
Output
    <tbody class="twitter_bs">
        ... Table body content
    </tbody>

Table Row

Usage
    [bs_row type=""]
        ... Row content here
    [/bs_row]
Attributes
  • Type null, success, error, warning, info
Output
    <tr class="twitter_bs">
        ... Row content here
    </tr>

Table Cell

Usage
    [bs_cell]
       ... Cell content here
    [/bs_cell]
Output
    <td class="twitter_bs">
        ... Table content here
    </td>

Overall

Usage
    [bs_table]
        [bs_head]
            [bs_row]
                [bs_cell]First Name[/bs_cell]
                [bs_cell]Last Name[/bs_cell]
                [bs_cell]User Name[/bs_cell]
            [bs_row]
        [/bs_head]
        [bs_body]
            [bs_row]
                [bs_cell]Mark[/bs_cell]
                [bs_cell]Otto[/bs_cell]
                [bs_cell]@mdo[/bs_cell]
            [/bs_row]
            [bs_row]
                [bs_cell]Jacob[/bs_cell]
                [bs_cell]Thornton[/bs_cell]
                [bs_cell]@fat[/bs_cell]
            [/bs_row]
            [bs_row]
                [bs_cell]Larry[/bs_cell]
                [bs_cell]The Bird[/bs_cell]
                [bs_cell]@twitter[/bs_cell]
            [/bs_row]
        [/bs_body]
    [/bs_table]
Output
    <table class="twitter_bs table    ">
        <thead><br />
        <tr class=""></tr><br />
        <td>First Name</td><br />
        <td>Last Name</td><br />
        <td>User Name</td><br />
        <tr class=""></tr><br />
        </thead><br />
        <tbody><br />
        <tr class=""><br />
            <td>Mark</td><br />
            <td>Otto</td><br />
            <td>@mdo</td><br />
        </tr><br />
        <tr class=""><br />
            <td>Jacob</td><br />
            <td>Thornton</td><br />
            <td>@fat</td><br />
        </tr><br />
        <tr class=""><br />
            <td>Larry</td><br />
            <td>The Bird</td><br />
            <td>@twitter</td><br />
        </tr><br />
        </tbody><br />
    </table>

Grid Container

Usage
    [bs_grid display=""]
        ... Grid content here
    [/bs_grid]
Attributes
  • Display null, fluid
Output
    <div class="twitter_bs row">
        ... Grid content here
    </div>

Grid Column

Usage
    [bs_column size=""]
        ... Column content here
    [/bs_column]
Attributes
  • Size 1 to 12
Output
    <div class="twitter_bs span8">
        ... Column content here
    </div>
    <div class="twitter_bs span4">
        ... Column content here
    </div>

Tabs

Add quick, dynamic tab functionality to transition through panes of local content, even via dropdown menus.

Usage
    [bs_tabs]
        [bs_tab title="Home" id="home"]
            My Home content
        [/bs_tab]
        [bs_tab title="Profile" id="profile" active="true"]
            My Profile content
        [/bs_tab]
        [bs_tab title="Messages" id="messages"]
            My Messages content
        [/bs_tab]
    [/bs_tabs]
Attributes
  • Title User Input
  • Id User Input
  • Active null, true
Output
    <ul class="twitter_bs nav nav-tabs" id=""><br>
        <li class=""><a href="#home" data-toggle="tab">Home</a></li><br>
        <li class="active"><a href="#profile" data-toggle="tab">Profile</a></li><br>
        <li class=""><a href="#messages" data-toggle="tab">Messages</a></li><br>
    </ul>
    <div class="twitter_bs tab-content"><br>
        <div class="tab-pane " id="home"><br>
            My Home content<br>
        </div><br>
        <div class="tab-pane active" id="profile"><br>
            My Profile content<br>
        </div><br>
        <div class="tab-pane " id="messages"><br>
            My Messages content<br>
        </div><br>
    </div>

Tooltip

Usage
    [bs_tooltip tooltip="Tooltip content" placement="left"]Tooltip Link[/bs_tooltip]
Attributes
  • Placement null, top, bottom, left, right
  • Tooltip User Input
Output
    <a href="#" class="twitter_bs bs_tooltip" data-placement="left" data-original-title="Tooltip content">Tooltip Link</a>

PopOver

Usage
    [bs_popover tooltip="Popover content" placement="left"]Popover Link[/bs_popover]
Attributes
  • Placement null, top, bottom, left, right
  • Tooltip User Input
Output
    <a href="#" class="twitter_bs bs_popover" data-placement="left" data-original-title="Popover content">Popover Link</a>

Accordion

Usage
    [bs_accordion id=""]
        [bs_accordion_tab title="Collapsible Item 1"]
            HTML/ShortCode Content for tab 1 here
        [/bs_accordion_tab]
        [bs_accordion_tab title="Collapsible Item 2" active="true"]
            HTML/ShortCode Content for tab 2 here
        [/bs_accordion_tab]
    [/bs_accordion]
Attributes
  • Id User Input
  • Title User Input
  • Active null, true
Output
    <div class="twitter_bs accordion">
        <div class="accordion-group">
            <div class="accordion-heading">
                <a class="accordion-toggle" data-toggle="collapse" href="#zg1m2FM6NY">Collapsible Item 1</a>
            </div>
            <div class="accordion-body collapse " id="zg1m2FM6NY">
                <div class="accordion-inner">
                    HTML/ShortCode Content for tab 1 here
                </div>
            </div>
        </div>
        <div class="accordion-group">
            <div class="accordion-heading">
                <a class="accordion-toggle" data-toggle="collapse" href="#RzmHs2jbLv">Collapsible Item 2</a>
            </div>
            <div class="accordion-body collapse in" id="RzmHs2jbLv">
                <div class="accordion-inner">
                    HTML/ShortCode Content for tab 2 here
                </div>
            </div>
        </div>
    </div>

About Us The people behind BootstrapPress

BootstrapPress is developed and maintained by Abid Omar.

BootstrapPress is licensed under the GPLv3 License. The Twitter Bootstrap CSS code is licensed under the Apache License v2.0. The Apache License v2.0 is compatible with the GPLv3.

We are open to custom development requests for WordPress, PHP and Front-End development (JavaScript). If you are interested you can contact us: contact@omarabid.com.