Spoilers Accordion
The Spoilers Accordion shortcode for WordPress can be used to display content in an interactive manner included in a list of spoilers, offering a smooth visual accordion transition when going through each one of them. Check below for example implementations and shortcode documentation:
Spoilers Accordion Examples
Spoiler 1
First spoiler content.
Spoiler 2
Second spoiler content.
Spoiler 3
Third spoiler content.
Spoilers Accordion Shortcodes
Spoilers Accordion Shortcode
[x3m-spoilers]
[x3m-spoiler title="Spoiler 1" open="yes" background="#f5f5f5" textcolor="black" radius="10px"]
First spoiler content.
[/x3m-spoiler]
[x3m-spoiler title="Spoiler 2" open="no" background="#f5f5f5" textcolor="black" radius="10px"]
Second spoiler content.
[/x3m-spoiler]
[x3m-spoiler title="Spoiler 3" open="no" background="#f5f5f5" textcolor="black" radius="10px"]
Third spoiler content.
[/x3m-spoiler]
[/x3m-spoilers]Spoilers Accordion Documentation
Here are the shortcode option settings available for Spoilers Accordion:
| Shortcode Settings | Details |
|---|---|
| title=”Spoiler Title” | This is used to set title on each individual spoiler. |
| open=”no” | This is used to set spoiler to be open or not on page load. Available options: – “no” for having the spoiler closed – “yes” for having the spoiler open |
| background=”#f5f5f5″ | This is used to set the background color of the spoiler container.
Color names or HEX color codes can be used to set the desired color. |
| textcolor=”black” | This is used to set the text color for the spoiler title.
Color names or HEX color codes can be used to set the desired color. |
| radius=”10″ | This is used to set corners’ radius of the spoiler container, making them rounder or sharper. |