Shortcodes
Except the WordPress native shortcodes, we developed the shortcodes which allows you to make your site more unique have rich features for editor and add contact form in any editor. Below is the list of available shortcodes for Boombox theme.
Tab Shortcode #
Tabbed content allows you to display content in tabs.
Horizontal Tab Example
Vertical Tab Example
Example:
[boombox_tabs layout="vertical" active="1" classes="class-name"]
[boombox_tab title="Your title #1"]Your Description here #1[/boombox_tab]
[boombox_tab title="Your title #2"]Your Description here #2[/boombox_tab]
[boombox_tab title="Your title #3"]Your Description here #3[/boombox_tab]
[/boombox_tabs]
Parameters
- layout
- Can be one of these values: horizontal (default) or vertical.
- active
- Active tab number. Default: 1
- classes
- Class names separated by spaces.
Dropcap #
Dropcap is a large initial letter that drops below the first line of a paragraph, usually used at the beginning of a section or chapter of a book.
Examples:
[boombox_dropcap style="primary" font_size="48px"
class="class-name"] L [/boombox_dropcap]orem ipsum dolor sit amet,
consectetur adipiscing elit. Donec sit amet consectetur ante.
[boombox_dropcap font_size="48px" class="class-name"] L
[/boombox_dropcap]orem ipsum dolor sit amet, consectetur adipiscing
elit. Donec sit amet consectetur ante. Maecenas accumsan tellus
porttitor nisl gravida feugiat.
[boombox_dropcap style="primary" font_size="70px" color="red"
class="class-name"] L [/boombox_dropcap]orem ipsum dolor sit amet,
consectetur adipiscing elit. Donec sit amet consectetur ante. Maecenas
accumsan tellus porttitor nisl gravida feugiat.
Parameters
- style
- Can be primary ( site primary color ). Leave blank for default style.
- font_size
- Accepts a pixel value. For example, 20px.
- color
- Accepts a hexcode ( #000000 ), RGBA ( rgba(0,0,0,1) ) or certain colors such as red, or transparent.
- class
- Add a custom class to the wrapping HTML element for further css customization.
Tooltips #
Examples:
[boombox_tooltip title="This is an example page. It's different
from a blog post because it will stay." class="tooltip-test-class"]
Lorem ipsum [/boombox_tooltip]
dolor sit amet, consectetur adipiscing elit.
Parameters
- title
- The custom text that will show in the text popup.
- class
- Add a custom class to the wrapping HTML element for further css customization
Highlight #
Examples:
[boombox_highlight style="primary"
class="highlights-test-class"] Lorem ipsum [/boombox_highlight] dolor
sit amet, consectetur adipiscing elit. Donec sit amet consectetur ante.
[boombox_highlight background_color="#fdafaf"
text_color="#88702a" class="highlights-test-class"] Lorem ipsum
[/boombox_highlight] dolor sit amet, consectetur adipiscing elit. Donec
sit amet consectetur ante.
Parameters
- style
- Can be primary ( site primary color ). Leave blank for default style.
- background_color
- Accepts a hexcode ( #000000 ), RGBA ( rgba(0,0,0,1) ) or certain colors such as red, or transparent. By default your button background color will be set from customizer setting.
- text_color
- Accepts a hexcode ( #000000 ), RGBA ( rgba(0,0,0,1) ) or certain colors such as red, or transparent. By default your button text color will be set from customizer setting.
- class
- Add a custom class to the HTML element for further css customization.
Columns #
There are 3 types of column shortcodes: One Half, One Third, One Fourth, you can put content, image or other shortcode to these columns
Two columns
boombox_row][boombox_one_half] Some content [/boombox_one_half][boombox_one_half]Some content [/boombox_one_half][/boombox_row]
Three columns
[boombox_row][boombox_one_third] Some content [/boombox_one_third][boombox_one_third]Some content [/boombox_one_third]
[boombox_one_third] Some content [/boombox_one_third][/boombox_row]
Four columns
[boombox_row][boombox_one_fourth]
Some content [/boombox_one_fourth][boombox_one_fourth] Some content
[/boombox_one_fourth]
[boombox_one_fourth] Some content
[/boombox_one_fourth][boombox_one_fourth] Some content
[/boombox_one_fourth][/boombox_row]
Thumbnails #
Examples:
[boombox_thumbnail style="border"]<img src="image_src" alt="" />[/boombox_thumbnail]
[boombox_thumbnail style="circle"]<img src="image_src" alt="" />[/boombox_thumbnail]
Parameters
- style
- Can be circle or border (default)
Contact form #
Examples: [boombox_contact_form message_placeholder="Your message" label_submit="Submit Your Message" captcha="0"]
Parameters
- message_placeholder
- Your Message (default)
- label_submit
- Submit Your Message (default)
- captcha
- 0 ( disable ), 1 ( enable )
Please note, that as default email address contact form using email address added in Dashboard ▸ Settings ▸ General ▸ Email address