Simple Accessible Spoilers
v1.0.13seshelby · 2019年7月5日 上架
Create fully accessible content spoilers or accordions with a shortcode.
- 正在使用
- 100+
- 评分
- 5.0 / 5
- 累计下载
- 6,235
- 最近更新
- 2026年6月21日
1 条评价需要 WordPress 3.9.1+已测试到 7.0.9PHP 5.6+
贡献者
Create fully accessible content spoilers or accordions with a shortcode.
- Fully accessible to screen reader users
- Creates a flexible spoiler shortcode
- Define groups of accordions to close open accordions when another in the same group is opened.
- Override design in theme CSS files
Sample Code
[spoiler title="Sample Code" initial_state="expanded" tag="h2" group="a"]
Include content here
[/spoiler]
Attributes
title: should include the clickable text to be displayed in your accordion
initial_state: values include collapsed or expanded, default to “collapsed”
group: any alphanumeric value. used to define a group of accordions. when one accordion is opened all other items in the group will be closed.
tag: values include any typical html tag but a heading tag should be used for accessibility, defaults to H2