A simple and customizable accordion block for the WordPress block editor (Gutenberg).
- 🏗 Gutenberg-native: Easily insert accordions directly within the block editor.
- 🔄 Collapsible Sections: Expand and collapse sections with a simple click.
- ✏ Custom Titles: Edit accordion titles from the block settings panel.
- 🔗 Inner Blocks Support: Nest any other blocks inside the accordion content.
- 📱 Fully Responsive: Works across all devices and screen sizes.
- 🎨 Customizable: Supports CSS styling and additional JavaScript functionality.
This plugin is perfect for FAQs, collapsible sections, and structured content layouts.
- Clone the repository or download the latest release.
- Upload the plugin files to
/wp-content/plugins/accordion-block
, or install via the Plugins screen in WordPress.
You can install the plugin using Composer by adding the repository to your composer.json
:
composer config repositories.accordion-block vcs https://github.com/moveyourdigital/wp-accordion-block.git
composer require moveyourdigital/wp-accordion-block
- Activate the plugin via WordPress Admin > Plugins.
- In the Gutenberg editor, search for Accordion Block, insert it, and start adding content.
- Customize via the block settings panel.
Simply insert the Accordion Block from the Gutenberg editor, set a title, and add content inside the accordion.
Yes! Each accordion block works independently.
Yes, it is designed to work with any Gutenberg-compatible theme. You may need to adjust styles for better integration.
Yes, you can set whether the accordion starts open or closed in the block settings.
- Initial release 🎉
- Added collapsible accordion sections
- Integrated InnerBlocks for flexible content
- Customizable titles and settings via Inspector Controls
This plugin was scaffolded using the WordPress Create Block tool.
- Fork this repository.
- Create a new feature branch (
git checkout -b feature-name
). - Commit your changes (
git commit -m "Added new feature"
). - Push to the branch (
git push origin feature-name
). - Open a Pull Request.
For issues or feature requests:
- 📌 Open an issue on GitHub Issues.
- 📩 Reach out via the WordPress support forum.
This plugin is licensed under GPL-2.0-or-later. See the LICENSE file for details.