Well, these really aren’t “shortcodes” in the traditional WordPress sense. They are CSS components built directly into our themes that you can use to beef up the look of your content. Most of them come from Bootstrap, but we have added color swatches that you can use for full-width colored sections and a couple of cool additional buttons.

Color Swatches

These color swatches are all based on the “Flat UI” kit from designmodo, although we’ve renamed their esoteric color names to things that should be easier to remember.

<div class="section bg-darkgreen centered">bg-darkgreen</div>

Note that you can also use these colors for text as well. Just use the prefix ‘color-‘ instead of ‘bg-‘. For example, this text is in color-blue.

<span class="color-blue">this text is in color-blue</span>

Text Alignment

Of course WordPress has left, center, and right alignment that you can choose from the Visual Editor and that’s the easiest way to do it. However, because this theme is based on Bootstrap, there are some additional ones.

Left aligned text

Center aligned text

Right aligned text

Justified text. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

<p class="alignleft">Left aligned text</p> or <p class="text-left">Left aligned text</p>
<p class="aligncenter">Center aligned text</p> or <p class="text-center">Center aligned text</p>
<p class="alignright">Right aligned text</p> or <p class="text-right">Right aligned text</p>
<p class="text-justify">Justified text</p>

Text Transformation

Transform text in components with text capitalization classes. These are especially useful in our themes, either to add capitalization or remove it from themes like Spot that automatically capitalize certain headings.

lowercased text


Capitalized Text

<p class="text-lowercase">LOWERCASED TEXT</p>
<p class="text-uppercase">uppercased text</p>
<p class="text-capitalize">capitalized text</p>

Buttons, Buttons, and More Buttons

<a href="#" class="btn btn-primary">btn-primary</a>

Progress Bars

<div class="progress-bar progress-bar-success" style="width: 40%;" role="progressbar"><span class="sr-only">40% Complete (success)</span></div>

Tabbed Content

<ul class="nav nav-tabs"> 
<li class="active"><a href="#home" data-toggle="tab">Home</a></li> 
<li><a href="#profile" data-toggle="tab">Profile</a></li> 
<div class="tab-content"> 
<div class="tab-pane active" id="home">This is some text related to <b>home</b>.</div> 
<div class="tab-pane" id="profile">This is some text related to <b>profile</b>.</div>

Collapsible Content Panels

<div id="accordion" class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title"><a href="#collapseOne" data-toggle="collapse" data-parent="#accordion">Collapsible Group Item #1 +
<div id="collapseOne" class="panel-collapse collapse in">
<div class="panel-body">...</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title"><a href="#collapseTwo" data-toggle="collapse" data-parent="#accordion">Collapsible Group Item #2 +
<div id="collapseTwo" class="panel-collapse collapse">
<div class="panel-body">...</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title"><a href="#collapseThree" data-toggle="collapse" data-parent="#accordion">Collapsible Group Item #3 +
<div id="collapseThree" class="panel-collapse collapse">
<div class="panel-body">...</div>


<div class="alert alert-primary">This is the text for the alert (alert-primary)</div>


<div class="panel panel-primary">
<div class="panel-heading"><h3 class="panel-title">Primary Panel (panel-primary)</h3></div>
<div class="panel-body">Panel content</div>

9 responses to “Our Bootstrap Theme “Shortcodes””

  1. gingamenino Avatar

    Como utilizo nesse tema essa função “Full-width Image
    Just add h1 and h2 tags in the caption” mencionada acima?
    Parabéns pelo seu tema!

    1. gingamenino Avatar

      As I use in this theme this function “Full-width Image
      Just add h1 and h2 tags in the caption “mentioned above?
      Congratulations on your theme!

  2. Sofia Wirberg Avatar
    Sofia Wirberg

    What does “quicktags” mean? [fullwidth][/fullwidth], or ?

    “This theme includes two “quick tags” in the WordPress HTML editor to add a normal full-width sections or a special “header” section that has a thick bottom border. You just need to make sure you are in Text mode instead of Visual mode in the editor. The quicktags are as follows:

    fullwidth – For use in a full-width page template or fullwidth article. Inserts a section and container for your content. Default color is offwhite, but you can change it to any of our included colored backgrounds.”

    1. Tim Nicholson Avatar

      If you set a page to any of the included fullwidth page templates, then you need to handle putting your text into a Bootstrap “container”. This is so you can add a colored section that fills the entire width of the page, but then contain the content of that section so there is proper margins on the left and right.

      For example, let’s say we want a full-width blue section on our page. We can do it like this:

      <div class="section bg-blue">
      <div class="container">>
      Our text and other content goes here and has proper margins on it.

      These “quicktags”, just insert HTML similar to above for you so you don’t have to type it all.

  3. Doc g'Worldz Avatar

    I noticed you recommend Agnosia Bootstrap Carousel by AuSoft, does that mean JavaScript Carousel component is not included with the theme by default?

    If its not included how complicated would it be for a novice to add it and/or other components not included in the theme?

    1. Doc g'Worldz Avatar

      I forgot to check the boxes so I get notified o.O

    2. Tim Nicholson Avatar

      You can do anything with the theme that Bootstrap can do, even without plugins. You have to paste in the HTML samples and edit it. Carousels are covered here: http://getbootstrap.com/javascript/

  4. Tim Nicholson Avatar

    Hi, Elana. I think its a good idea for me to post the code blocks right after each example. In the meantime, every “shortcode” except the color palette is standard Bootstrap HTML. You can see how to code any of the “shortcodes” here: http://getbootstrap.com/components/

  5. Elena Rapisardi Avatar

    interesting theme, but to use it it would have been great to have more “educational” instruction.
    e.g. code examples for each “shortcode”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.