1 minute read

Accordion shortcode


  • title – set title of the accordion, for example “My custom title”.

Exemplary usage:

[accordions][accordion title="Accordion one"]
<p>Accordion one content</p>
[accordion title="Accordion two"]
<p>Accordion two content</p>
[accordion title="Accordion three"]
<p>Accordion three content</p>

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.