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

WooCommerce - Sidebar Categories/Sub-Categories

  • SOLVED

Need for WooCommerce:
Sidebar that list the shop Categories and Sub Categories, similar to this [[LINK href="http://www.yithemes.com/live/?theme=sommerce"]][[/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 wpquestions.com?

Answers (1)

2013-04-08

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.

Regards,
Gabriel


Gabriel Reguly comments:

Ok, so no URL.

My dev server ([[LINK href="http://wc2.omniwp.com.br/"]]http://wc2.omniwp.com.br/[[/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="http://wc2.omniwp.com.br/categoria-produto/category/">Categoria</a>
<ul class="children">
<li class="cat-item cat-item-17">
</ul>
</li>
</ul>


Regards,
Gabriel


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.

Regards,
Gabriel