Skip to content

Item Shortcode

Oliver Juhas edited this page Jun 22, 2017 · 5 revisions

Info

This is a child shortcode required to be used inside the accordion and tabs shortcode. It does not work on its own.


Example

[wm_item title="Title text" tags="Tag one, Tag two" icon="icon-class" heading_tag="h3"]
Item text. Will become an accordion section, or a tab.
[/wm_item]

Parameters

Please note that you can omit parameters with empty values when writing the shortcode.

Parameter Type Value example    Description
icon string icon-class Use one of predefined icons classes here. For the complete list of icons (and their classes) please see Appearance » Icon Font in your WordPress dashboard (your theme has to support this feature).
heading_tag predefined h2, h3, h4, h5 or h6 Sets the item title HTML heading tag for headings cascade control (for better accessibility). Although, the title might be (accessibly) hidden, you should always set this properly.
tags string A tag, or even multiple tags, such as Tag one, Tag two If you set tag(s) for an item, you can filter items in accordion shortcode. When setting multiple tags, separate them with , (a comma and space).
title string Item title The title will determine the accordion section caption or tab caption. You should always set it.

Compatibility

Please, make sure your theme supports this shortcode, before using it.
Some themes may not be compatible with certain shortcodes as they may use different approach to displaying similar elements. In that case the shortcode is displays in its raw code format on your website front-end.