Description
At a glance
Looking for Accordion Blocks v1.5.0? It is available here as a free GPL download for WordPress — 10K+ active installs · 5/5 rating from 36 reviews · updated February 7, 2022 · requires WordPress 5.9+ & PHP 7.3+.
Accordion Blocks is a simple plugin that adds a Gutenberg block for adding accordion drop-downs to your pages.
The accordions should blend seamlessly with your theme. However, you may want to add custom styles to your theme.
Features
- Adds a Gutenberg block for adding accordions to your site.
- Supports multiple accordions with individual settings for each accordion item.
- Fully responsive.
- Support for item IDs and direct links.
- Supports nesting accordions.
- Accessible (for users requiring tabbed keyboard navigation control).
Optional Features
- Open individual accordion items by default.
- Disable auto closing of accordion items.
- Manually close items by clicking the title again.
- Scroll page to title when it’s clicked open (including setting a scroll offset position).
- Set the HTML heading tag for the title element (h1–h6, button).
- Set defaults to be applied to all new accordion items or reset a specific accordion item to the defaults.
- Supports adding custom block styles using
wp.blocks.registerBlockStyle.
Output
The plugin will ultimately output following HTML (simplified for this example):
<div class="wp-block-pb-accordion-item c-accordion__item js-accordion-item" data-initially-open="false" data-click-to-close="true" data-auto-close="true" data-scroll="false" data-scroll-offset="0">
<h2 id="at-76840" class="c-accordion__title js-accordion-controller" tabindex="0" role="button" aria-controls="ac-76840" aria-expanded="false">
Title with H2 tag
</h2>
<div id="ac-76840" class="c-accordion__content" style="display:none" aria-hidden="true">
<p>Content</p>
</div>
</div>
Custom CSS
You can use the following CSS classes to customize the look of the accordion.
.c-accordion__item {} /* The accordion item container */
.c-accordion__item.is-open {} /* is-open is added to open accordion items */
.c-accordion__item.is-read {} /* is-read is added to accordion items that have been opened at least once */
.c-accordion__title {} /* An accordion item title */
.c-accordion__title--button {} /* An accordion item title that is using a `<button>` tag */
.c-accordion__title:hover {} /* To modify the style when hovering over an accordion item title */
.c-accordion__title:focus {} /* To modify the style when an accordion item title currently has broswer focus */
.c-accordion__content {} /* An accordion item content container */
Frequently asked questions
What do I get when I download Accordion Blocks?
Accordion Blocks 1.5.0 is the latest version. It is a WordPress plugin you can download here free of charge under the GPL license, with the complete feature set included and no trial limitations. It holds a 5/5 rating from 36 user reviews.
Does Accordion Blocks cost anything?
No. Accordion Blocks 1.5.0 is 100% free — the full GPL version, not a trial or demo. There are no download limits, no accounts to create, and no upsells during the download.
How do I install Accordion Blocks 1.5.0?
Download the ZIP file from this page, then in your WordPress dashboard go to Plugins → Add New → Upload Plugin, choose the file, click Install Now, then Activate. The plugin works immediately after activation — no license key or extra setup is required for the core features.
What are the requirements for Accordion Blocks?
Accordion Blocks 1.5.0 requires WordPress 5.9 or higher and PHP 7.3 or higher. Most modern WordPress hosts already meet these versions. Running older versions may cause features to break, so update WordPress and PHP first if your site is behind.
When was Accordion Blocks last updated?
Version 1.5.0 was last updated on February 7, 2022. This page is refreshed automatically, so the download here always matches the newest version we have verified.
Is the Accordion Blocks download safe?
The file is sourced directly from the official WordPress.org repository — the same file the developer published. It is served unmodified, so what you install here is byte-identical to the official release.
Technical details
| Version | 1.5.0 |
|---|---|
| Last updated | February 7, 2022 |
| Active installs | 10,000+ |
| Rating | ★★★★★ 5/5 (36 reviews) |
| Requires WordPress | 5.9 or higher |
| Requires PHP | 7.3 or higher |
| Author | philbuchanan |
| Tags | accordion, accordions, block, gutenberg, responsive |
Download Accordion Blocks
Download Accordion Blocks WP PluginNote: if the download does not start, disable your ad blocker and try again.