This shortcode has additional styles available in Shortcodes Ultimate Pro
Tab name Tab name Tab name
Tab content
Tab content
Tab content
Tab name Tab name Tab name
Tab content
Tab content
Tab content
Tab name Tab name Tab name
Tab content
Tab content
Tab content
Get the code
[su_tabs]
[su_tab title="Tab name" disabled="no" anchor="" url="" target="blank" class=""]Tab content[/su_tab]
[su_tab title="Tab name" disabled="no" anchor="" url="" target="blank" class=""]Tab content[/su_tab]
[su_tab title="Tab name" disabled="no" anchor="" url="" target="blank" class=""]Tab content[/su_tab]
[/su_tabs]
[su_tabs vertical="yes"]
[su_tab title="Tab name" disabled="no" anchor="" url="" target="blank" class=""]Tab content[/su_tab]
[su_tab title="Tab name" disabled="no" anchor="" url="" target="blank" class=""]Tab content[/su_tab]
[su_tab title="Tab name" disabled="no" anchor="" url="" target="blank" class=""]Tab content[/su_tab]
[/su_tabs]
[su_tabs style="modern-blue"]
[su_tab title="Tab name" disabled="no" anchor="" url="" target="blank" class=""]Tab content[/su_tab]
[su_tab title="Tab name" disabled="no" anchor="" url="" target="blank" class=""]Tab content[/su_tab]
[su_tab title="Tab name" disabled="no" anchor="" url="" target="blank" class=""]Tab content[/su_tab]
[/su_tabs]
Table of contents
Description Options [su_tabs] – container [su_tab] – single tab If tabs don’t work Related articles
Description
This shortcode allows you to divide your content with horizontal or vertical tabs. You can specify which tab will be selected by default and turn any tab into a link. You can use any HTML code or even other shortcodes as content.
Options
[su_tabs] – container
style Tabs stylePossible values: default
carbon
sharp
grid
wood
fabric
modern-dark
modern-light
modern-blue
modern-orange
flat-dark
flat-light
flat-blue
flat-green
Default value: default
To use a style other than default
, you need install the Additional Skins add-on. active Select which tab is open by defaultPossible values: Number from 1 to 100Default value: 1
vertical Align tabs verticallyPossible values: yes
or no
Default value: no
mobile This option controls how shortcode will look and function on mobile devices.Default value: stack
anchor_in_url This option specifies whether an anchor will be added to page URL after clicking a tabPossible values: yes
or no
Default value: no
scroll_offset This option defines the top offset when the element is scrolled in. Can be useful along with the fixed site header.Possible values: number from 0
to 2000
Default value: 0
class Additional CSS class name(s) separated by space(s)
[su_tab] – single tab
title Tab titleDefault value: Tab name
disabled Is this tab disabledPossible values: yes
or no
Default value: no
anchor You can use a unique anchor for each tab to access it with hash in page URL. For example: use the word Hello and then use a URL like http://example.com/page-url#Hello. This tab will be opened and scrolled in url Link tab to any webpage. Use full URL to turn the tab title into link target Choose how to open the custom tab linkDefault value: blank
class Additional CSS class name(s) separated by space(s)
If tabs don’t work
If the shortcode doesn’t work, tabs aren’t clickable, chances are you have a JavaScript error on your page. Read this to learn how to fix it.
Related articles