Tabgroup / Tab
Wraps one or more tab blocks into a tabbed interface.
Tabgroup
Shortcode:
[tabgroup]
Tab
Shortcode:
[tab]
Attributes:
Code Example:
[tabgroup]
[tab title="Overview" id="overview"]Our program runs every fall.[/tab]
[tab title="Schedule" id="schedule"]Classes meet Tuesdays at 6pm.[/tab]
[tab title="Pricing" id="pricing"]Registration is $50.[/tab]
[/tabgroup]
Output:
<!-- the tabs -->
<ul class="tabs">
<li><a href="#overview">Overview</a></li>
<li><a href="#schedule">Schedule</a></li>
<li><a href="#pricing">Pricing</a></li>
</ul>
<!-- tab "panes" -->
<ul class="tabs-content">
<li id="overviewTab">Our program runs every fall.</li>
<li id="scheduleTab">Classes meet Tuesdays at 6pm.</li>
<li id="pricingTab">Registration is $50.</li>
</ul>
Note:
- Each page supports one
[tabgroup]. To show more tabs, add them to the same group. - Tab titles can't include the
%character. For example, write "100 Percent Free" instead of "100% Free."