Accordion
Accordion shortcode allows you to provide multiple panes and display them one at a time. We can create an accordion quickly by using syntax as below:
[accordions class="CLASS_WRAPPER"]
[accordion title="TITLE_ITEM_1" expand="TRUE|FALSE" class="CLASS_ITEM"]Content Item 1 here[/accordion]
[accordion title="TITLE_ITEM_2" expand="TRUE|FALSE" class="CLASS_ITEM"]Content Item 2 here[/accordion]
[accordion title="TITLE_ITEM_{I}" expand="TRUE|FALSE" class="CLASS_ITEM"]Content Item {I} here[/accordion]
[/accordions]
In Pressa theme, we pre-defined CLASS_WRAPPER can be:
- default
style02
NOTE:
Default value of expand property is FALSE
- You can define more than class if you want
You can reference to link to view how shortcode display
The sample result of accodion shortcode as below: