Skip to content

How to Expand or Close all accordion items with a button in Elementor?

Table Of Content

Does your accordion have a lot of items? An Expand All button lets visitors open every answer at once and scan the page, then close them all again.

The Accordion widget from The Plus Addons for Elementor has an Expand & Collapse Button for this.

To check the complete feature overview documentation of The Plus Addons for Elementor Accordion widget, click here.

Requirement – This widget is a part of The Plus Addons for Elementor, make sure it’s installed & activated to enjoy all its powers.

Before You Start

  • Edition: Pro — the Expand & Collapse Button is part of The Plus Addons for Elementor Pro. In the free plugin the option shows an upgrade notice instead of working.
  • Widget to enable: Accordion, switched on under The Plus Addons > Widgets.

Steps

  1. Add the Accordion widget and your items.
  2. In Content > Special Option, turn on Expand & Collapse Button and click the pencil next to it.
  3. Set Position (Before or After the items), the Expand and Collapse labels (default “Expand All” and “Collapse All”) and the Alignment.
  4. Style it in Style > Expand/Collapse Button.
The expand and collapse button settings with position, labels and alignment

Publish. The button now opens every item, and a second click closes them all.

All accordion items open, with the collapse all button above them
Expanding and collapsing all accordion items

How It Behaves

  • The label switches between your Expand and Collapse texts.
  • After expanding all, clicking one item goes back to normal: that item opens and the others close.
  • With the Search Bar, the button only opens or closes the items that match the search.

Limitations

  • Not with Horizontal Accordion. The button option is hidden while Horizontal is on.

Troubleshooting

The option is missing

Turn off Horizontal Accordion.

Related Docs

Related Frequently Asked Questions

Related Docs