Description
Accordion FAQs adds an accessible FAQ accordion block to the WordPress block editor.
Add a question and answer, then add or remove FAQ items from the block settings sidebar. Each FAQ uses the browser’s native accordion behavior, so visitors can expand and collapse answers with a mouse or keyboard.
Source code
The complete human-readable source code is included in this plugin. JavaScript source files are in src/index.js, and styles are in src/editor.scss and src/style.scss. Generated production files are in build/.
Build instructions
This plugin uses @wordpress/scripts.
- Install Node.js and npm.
- From the plugin directory, run
npm install. - Run
npm run buildto regenerate the files inbuild/. - Run
npm startfor development mode.
Blocks
This plugin provides 1 block.
- Accordion FAQ An accessible accordion list of frequently asked questions.
Installation
- Upload and activate the plugin.
- Open the Block Editor, select the block inserter (+), and search for FAQ.
FAQ
-
How do I add the block?
-
Open a page or post in the WordPress block editor, select the block inserter (+), and search for “Accordion FAQ”. Add the block to the content.
-
How do I add more questions?
-
Select the block in the editor. In the Block settings sidebar, use “Add FAQ item” to add another question and answer. Use the “Remove” button beside an item to delete it.
-
Can I customize the colors and spacing?
-
Yes. The block supports text and background colors and WordPress margin and padding controls.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Accordion FAQs” is open source software. The following people have contributed to this plugin.
Contributors“Accordion FAQs” has been translated into 1 locale. Thank you to the translators for their contributions.
Translate “Accordion FAQs” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.