Widget

Adding the Widget (Classic Widget Areas)

  1. Go to Appearance → Widgets.
  2. Find WooCommerce Category Accordion in the available widgets panel.
  3. Drag it into your desired sidebar or widget area.
  4. Expand the widget to configure its settings.
  5. 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:

  1. Go to Appearance → Widgets.
  2. Click the + inserter in the widget area where you want the accordion.
  3. Search for WooCommerce Category Accordion and select the block.
  4. Configure settings in the block sidebar panel.
  5. 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.

Shortcode
[WC-Category-Accordion]

Frequently Asked Questions