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.
Showing 1–12 of 36 results
-
Add to cart
Dell UltraSharp U2723QE
$579.00 -
Sale
Add to cart
LG UltraFine 27UP85
Original price was: $449.00.$379.00Current price is: $379.00. -
Add to cart
Samsung Odyssey G7 28"
$699.00 -
Read more
ASUS ProArt PA279CRV
$469.00 -
Read more
Apple Watch Series 9 (45mm)
$429.00 -
Add to cart
Apple Watch Ultra 2
$799.00 -
Sale
Add to cart
Samsung Galaxy Watch 6 Classic
Original price was: $399.00.$329.00Current price is: $329.00. -
Add to cart
Garmin Forerunner 265
$449.00 -
Add to cart
Google Pixel Watch 2
$349.00 -
Sale
Read more
Apple AirPods Pro (2nd gen)
Original price was: $249.00.$199.00Current price is: $199.00. -
Add to cart
Sennheiser Momentum 4
$349.00 -
Add to cart
Sony WF-1000XM5
$299.00
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
- Open Matlock's WP Search & Filter Everything → Settings.
- Enable Accordion mode (desktop) and/or Accordion mode (mobile).
- Save and load the product page with the Filter Set.
- Click a filter heading to expand it, then click again to collapse it. Test the behavior at desktop and mobile widths.