Accordion shortcode
Parameters:
- title – set title of the accordion, for example “My custom title”.
Exemplary usage:
[accordions][accordion title="Accordion one"]
<p>Accordion one content</p>
[/accordion]
[accordion title="Accordion two"]
<p>Accordion two content</p>
[/accordion]
[accordion title="Accordion three"]
<p>Accordion three content</p>
[/accordion]
[/accordions]
See also demo of accordion shortcode. In full download package (Dummy data/shortcodes-pages/accordion.html) You can find the file with shortcodes we used to create demo page.
Did you know...
You can use accordion element in drag and drop website builder (Visual Composer) and customize this element easily without coding skills. Parameters and design options are the same as in shortcode.