The accordion block lets users show and hide sections of content on a page.
An accessible, and progressively enhanced accordion block for the WordPress block editor.
No styling is provided other than the essentials for toggling the visibility of accordion sections and working without JavaScript.
It was heavily inspired on the accordion patterns recommended by the W3C Web Accessibility Initiative (WAI) and the GOV.UK Design System team.
The icons are from Themify Icons.
- Download the plugin ZIP file from the GitHub repository.
- Go to Plugins > Add New > Upload Plugin in your WordPress admin area.
- Upload the ZIP file and click Install Now.
- Activate the plugin.
To include this plugin as a dependency in your Composer-managed WordPress project:
- Add the plugin to your project using the following command:
composer require pixelalbatross/accordion-block- Run
composer installto install the plugin. - Activate the plugin from your WordPress admin area or using WP-CLI.
This plugin requires no configuration.
A complete listing of all notable changes to this project are documented in CHANGELOG.md.