Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

How to hide empty categories?

Home / Forums / Virtue Theme / How to hide empty categories?

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
December 12, 2013 at 7:09 am

Hi,
We are in the pre-launch stage of updating our website with Virtue Premium (love it, btw). Is there a way to hide empty categories in the Shop menu (WooCommerce)? We have created various categories such as Men/Shoes, and then added them as product category menus under the “shop” main menu, but would like them to not show if there is no live product currently in the category. Google searching, I found the suggestion of adding “wp_list_categories(‘show_count=0&title_li=&depth=1&hide_empty=0’)” to the appropriate section in the index.php file (for a different theme), but don’t see that section in Virtue’s index.php file. Doable?
Thanks in advance!
Dave

  • The forum ‘Virtue Theme’ is closed to new topics and replies.