Adding the Widget (Classic Widget Areas)
- Go to Appearance → Widgets.
- Find WooCommerce Category Accordion in the available widgets panel.
- Drag it into your desired sidebar or widget area.
- Expand the widget to configure its settings.
- Click Save.
Widget Settings
The widget exposes the same configuration options as the shortcode attributes:
| Field | Description |
|---|---|
| Title | Optional heading displayed above the accordion. |
| Theme | Visual theme (overrides global setting for this instance). |
| Icon Style | Toggle icon type. |
| Order By / Order | Sort field and direction. |
| Show Count | Display product counts. |
| Hide Empty | Hide empty categories. |
| Max Depth | Limit nesting depth. |
| Exclude Categories | Comma-separated IDs to exclude. |
Block-Based Widget Areas (WordPress 5.8+)
If your theme uses block-based widget areas, the classic widget panel is replaced by the block editor. To add the accordion:
- Go to Appearance → Widgets.
- Click the + inserter in the widget area where you want the accordion.
- Search for WooCommerce Category Accordion and select the block.
- Configure settings in the block sidebar panel.
- Click Update.
Shop Sidebar Tip
For best results, add the widget to your Shop Sidebar widget area (the name varies by theme — it’s often called “Woocommerce Sidebar” or “Shop Sidebar”). This places the category navigation alongside your product listing automatically on all shop and category pages.