WooCommerce Collapsible Filter Sections

WooCommerce collapsible filter sections let shoppers open or close filter groups instead of leaving every option expanded. This electronics demo enables accordion mode on desktop and mobile. Click Brand to collapse its options, then open it again to continue filtering.

Try this: Click Brand to collapse or expand its section and give the results more room.

How this demo is configured

  • Create a filter by Brand (product attribute pa_brand). Show as Checkboxes. Show the first 6 terms, with a More toggle.
  • Create a filter by Category (taxonomy product_cat). Show as Checkboxes. Limit to the terms Headphones, Laptops, Monitors, Smartphones, Smartwatches and Tablets.
  • Create a filter by Price (custom field _price). Show as Range slider. Slider step: 10.
  • Create a filter by Rating (custom field _wc_average_rating). Show as Star rating.
  • Desktop filter sections: collapsible.
  • Mobile filter sections: collapsible.
Filters
Brand
Brand
Category
Category
Price
Price
—
Rating
Rating

Showing 13–24 of 36 results

How accordion filter sections work

With Accordion mode active, each filter heading opens or closes its option area. Shoppers can expand a group to reach its controls or collapse it to make room for the rest of the panel.

When to collapse filter groups

Use collapsible sections when the filter panel contains several groups and shoppers want to open only the one they need. This keeps the panel shorter while preserving access to every option.

Keep important filters easy to find. Check the initial open state and the number of interactions required on both screen sizes.

Enable accordion mode

  1. Open Matlock's WP Search & Filter Everything → Settings.
  2. Enable Accordion mode (desktop) and/or Accordion mode (mobile).
  3. Save and load the product page with the Filter Set.
  4. Click a filter heading to expand it, then click again to collapse it. Test the behavior at desktop and mobile widths.

Frequently asked questions

Which filter groups start open in the demo?

Price and range controls can start open; the other sections begin collapsed.

Does collapsing a section clear its selection?

No. It changes the visibility of the options; the filter selection remains active.