Ask your WordPress questions! Pay money and get answers fast! (more info)

WooCommerce - Sidebar Categories/Sub-Categories


Need for WooCommerce:
Sidebar that list the shop Categories and Sub Categories, similar to this [[LINK href=""]][[/LINK]]

Trying to figure out how to add styles to make the sub-categories indent in under the parent category.

Also, is there a way all parent categories are collapsed and when you click on parent category, the sub category will show indented/under the parent category?

I have been looking at the style sheet, and noticed that it is not putting the class "children" for a sub category.

The website is an intranet, so no link.

PS: Where is the search box/button on

Answers (1)


Gabriel Reguly answers:

Hi 69developer,

Do you have an URL so we can have a look at?

By default WooCommerce and Twenty Twelve indent the product categories and subcategories.


Gabriel Reguly comments:

Ok, so no URL.

My dev server ([[LINK href=""]][[/LINK]]) does work, so I wonder what is your theme?

<h3 class="widget-title">Categorias de produtos</h3>
<ul class="product-categories">
<li class="cat-item cat-item-18">
<a href="">Categoria</a>
<ul class="children">
<li class="cat-item cat-item-17">


69developer comments:

It was a dumb mistake on my part. Got it working...

Gabriel Reguly comments:

Ah, it happens to the best of us.

Glad to hear that you got it solved.