WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by philbuchanan v1.5.0

Accordion Blocks

Gutenberg block for creating responsive accordion drop-downs.

Accordion Blocks

The facts

Rating
5★ from 36
Active installs
10k+
Price
Free
Last updated
7 Feb 2022
Added
Mar 2019
Requires WP
5.9
Tested up to
WP 5.9.16
Requires PHP
7.3
Downloads
194,514

Our analysis

AI-assisted

Accordion Blocks is a WordPress plugin that adds a Gutenberg block specifically for creating accordion drop-downs on your pages. It allows you to have multiple accordions with individual settings, ensuring that they are fully responsive and accessible for users who require keyboard navigation.

The plugin supports features like nesting accordions, custom styles, and various options for item behaviour, such as opening items by default or disabling auto-closing. It is suitable for users looking to enhance their site with interactive content sections using the Gutenberg editor.

Best for: This plugin is best for WordPress users who want to add interactive accordion elements to their pages using the Gutenberg editor.

What it does well

  • Adds a Gutenberg block for accordion creation
  • Supports multiple accordions with individual settings
  • Fully responsive and accessible
  • Allows custom styles and settings for each item
  • Option to nest accordions

Where it falls short

  • Limited information on customisation options
  • No details on specific use cases or examples

Verdict

Accordion Blocks provides a straightforward solution for adding accordions to WordPress sites, with a focus on customisation and accessibility. It may suit users looking to enhance their content presentation.

From the developer

philbuchanan's own description of Accordion Blocks, lightly tidied.

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 */

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for extending a page builder.

Essential Addons for Elementor

Elementor addon offering 120+ widgets and templates — Elementor Gallery, Slider, Form, Post Grid, Menu, Accord...

Free 1M+ installs 4.9★ (4,111)
ElementsKit Elementor Addons

Join millions who empower their websites with ElementsKit Elementor Addons. Get templates, &amp; 100+ widgets...

Free 1M+ installs 4.9★ (2,036)
Ultimate Addons for Elementor

Elementor addons with 18+ free widgets, Header &amp; Footer Builder, WooCommerce widgets &amp; templates. Trus...

Free 2M+ installs 4.9★ (2,525)
Premium Addons for Elementor

Elementor Carousel, Mega Menu, Posts List/Slider, WooCommerce Widgets, Display Conditions, AI Abilities, Prema...

Free 600k+ installs 4.9★ (1,677)
Royal Addons for Elementor

Elementor templates, Header footer builder, Elementor Post Grid, Woocommerce Grid builder, Slider, Forms, Gall...

Free 600k+ installs 4.8★ (611)
Disable Gutenberg

Disable Gutenberg Block Editor and restore the Classic Editor and original Edit Post screen (TinyMCE, meta box...

Free 500k+ installs 5★ (733)