WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Tabs Shortcode

Lets you add tabs to your post and pages using a shortcode.

Sample CSS

Want to style the tabs a different way.

Here is some sample css to get you started. Another place to look for it would be the http://jqueryui.com/themeroller/, The shortcode used the jQuery UI to generate the tabs unless you are using the twitter bootstrap framework. See the FAQ on how to deal with that case.

/* =tabs
-------------------------------------------------------------- */
.tabs-shortcode.ui-tabs {
    padding:.2em;
    zoom:1;
    clear:both;
    background:#FFF;
    padding:0;
    margin:0;
}

.tabs-shortcode.ui-tabs-nav {
    list-style:none!important;
    padding:.2em 0 0!important;
    margin: 0!important;
}
.tabs-shortcode .ui-tabs-nav:after{
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}
* html .tabs-shortcode  .ui-tabs-nav          { zoom: 1; } /* IE6 */
*:first-child+html .tabs-shortcode .ui-tabs-nav { zoom: 1; } /* IE7 */

.tabs-shortcode .ui-tabs-nav li {
    position:relative;
    float:left;
    border:1px solid #CCC;
    background:#EEE;
    list-style:none!important;
    z-index: 100;
    padding:0;
}

.tabs-shortcode.ui-tabs .ui-tabs-nav li.ui-tabs-active,
.tabs-shortcode.ui-tabs .ui-tabs-nav li.ui-tabs-selected {
    background:#FFF;
    color:#111;
}

.tabs-shortcode .ui-tabs-nav li:before {
    content:"";
}

.tabs-shortcode .ui-tabs-nav li a {
    float:left;
    text-decoration:none;
    padding:2px 1em;
    color:#333;
    border:none!important;
}

.tabs-shortcode.ui-tabs .ui-tabs-nav li.ui-tabs-active a,
.tabs-shortcode.ui-tabs .ui-tabs-nav li.ui-tabs-selected a,
.tabs-shortcode.ui-tabs .ui-tabs-nav li.ui-state-disabled a,
.tabs-shortcode.ui-tabs .ui-tabs-nav li.ui-state-processing a {
    cursor: default;
}

.tabs-shortcode .ui-tabs-nav li a,
.tabs-shortcode.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a,
.tabs-shortcode.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a {
    cursor:pointer;
}

.tabs-shortcode .ui-tabs-panel {
    display:block;
    border-width:0;
    background:none;
}

.tabs-shortcode .ui-tabs-hide {
    display:none!important;
}

.tabs-shortcode.ui-tabs-panel {
    clear:both;
}
/* Position  Top and Bottom  */
.tabs-shortcode-top .ui-tabs-nav,
.tabs-shortcode-bottom .ui-tabs-nav{
    margin-left:0!important;
}
.tabs-shortcode-top .ui-tabs-nav li,
.tabs-shortcode-bottom .ui-tabs-nav li{
    position:relative;
    float:left;
    position:relative;
    float:left;
}

/* Position Top */
.tabs-shortcode-top .ui-tabs-nav{
    border-bottom: 1px solid #CCC;
}
.tabs-shortcode-top .ui-tabs-nav li.ui-tabs-active,
.tabs-shortcode-top .ui-tabs-nav li.ui-tabs-selected {
    padding-bottom:1px!important;
    border-bottom:0;
    margin:1px .3em -1px 0!important;
}
.tabs-shortcode-top .ui-tabs-nav li {
    border-bottom-width:0!important;
    margin:1px .3em 0 0!important;
}

/* Position Bottom */
.tabs-shortcode-bottom .ui-tabs-nav{
    border-top: 1px solid #CCC;
}
.tabs-shortcode-bottom .ui-tabs-nav li.ui-tabs-active,
.tabs-shortcode-bottom .ui-tabs-nav li.ui-tabs-selected {
    padding-top:1px!important;
    border-top:0;
    margin:-1px .3em 1px 0!important;
}

.tabs-shortcode-bottom .ui-tabs-nav li {
    border-top-width:0!important;
    margin:0 .3em 1px 0!important;  
}

/* Position  Left and Right  */
.tabs-shortcode-left .ui-tabs-nav,
.tabs-shortcode-right .ui-tabs-nav{
    width: 150px;
    margin: 0!important;
}

.tabs-shortcode-left .ui-tabs-nav li,
.tabs-shortcode-left,
.tabs-shortcode-right .ui-tabs-nav li,
.tabs-shortcode-right{
    position: relative;
    overflow: hidden;
}
.tabs-shortcode-left .ui-tabs-nav li,
.tabs-shortcode-right .ui-tabs-nav li{
    margin:0 0 0.3em 0;
    width: 100%;
}
.tabs-shortcode-left .ui-tabs-nav li a,
.tabs-shortcode-right .ui-tabs-nav li a{
    width: 100%;
}
.tabs-shortcode-left .ui-tabs-panel,
.tabs-shortcode-right .ui-tabs-panel{
    margin-left: 165px;
}

/* Position Left */
.tabs-shortcode-left .ui-tabs-nav{
    border-right: 1px solid #CCC;
    padding: 0 1px 10px 0!important;
}
.tabs-shortcode-left .ui-tabs-nav,
.tabs-shortcode-left .ui-tabs-nav li{
    float: left;
}
.tabs-shortcode-left .ui-tabs-nav li.ui-tabs-active,
.tabs-shortcode-left .ui-tabs-nav li.ui-tabs-selected {
    padding-right:1px;
    border-right:0;
    margin:0 1px 0.3em 0;
}

/* Position Right */
.tabs-shortcode-right .ui-tabs-nav{
    border-left: 1px solid #CCC;
    padding: 0 0 10px 1px!important;
}
.tabs-shortcode-right .ui-tabs-nav,
.tabs-shortcode-right .ui-tabs-nav li{
    float: right;
}
.tabs-shortcode-right .ui-tabs-nav li.ui-tabs-active,
.tabs-shortcode-right .ui-tabs-nav li.ui-tabs-selected {
    padding-left:1px;
    border-left:0;
    margin:0 0 0.3em 1px;
}

Requires: 3.4 or higher
Compatible up to: 3.5.2
Last Updated: 2013-12-23
Downloads: 18,037

Ratings

3 stars
3.8 out of 5 stars

Support

0 of 4 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1
0,1,0
100,1,1
0,1,0
50,2,1
0,1,0
100,1,1
100,1,1