Simple and good accordion plugin providing 2 blocks: Accordion and Accordion-pane. Drag an Accordion block into your post, page or custom post type and hit the ‘Add pane’ button for as often as you need.
Features:
- Setting for ‘One at a time’. Only one pane within an accordion can be opened. Uncheck this to allow for all panes to be opened simultaneously.
- Use ‘Tab’ key to focus panes and hit ‘Enter’ to open
- Extensive Use of Accessability attributes
- Optionally choose for HTML and tags.
- Panes scroll into view when a previous pane gets closed
- Adjust colors, margins and padding in the block editor
- Add styling via css, css-vars or theme.json
Use
Drag an Accordion block into a post or page or CPT and use the ‘Add pane’ button at the bottom of the block to add pane-blocks.
styling
At the root some basic styling variables are defined that can be overwritten by your theme. Some of these can be changed ad hoc by the user in de block-editor. These are:
The default values can also be defined in the theme.json of your (child-) theme:
Add them to the theme.json like so:

评论0