How to Hide Uncategorized Link in a Widget Menu of Product Categories?

View QuestionsCategory: QuestionsHow to Hide Uncategorized Link in a Widget Menu of Product Categories?
admin Staff asked 7 years ago

I have a woocommerce site with a side widget that shows a list of product categories (with links to view products of only that category). Sometimes there is an “uncategorized” category that shows in the widget. How do I hide / get rid of the uncategorized link?  
 
Requirement:

  • Woocommerce
  • WordPress
1 Answers
Best Answer
admin Staff answered 7 years ago

Solution:

  • By default, if a product is not categorized (does not have a category), it will be checked as uncategorized. So the solution is to cateogorize the product.
  • After all products are categorized, the link is likely still there. Click on the link to make sure no products remain uncategorized.
  • Go to the Admin Panel, Appearance, Widgets page
    • [domain]/wp-admin/widgets.php
  • Go to and expand the widget, check “Hide empty categories”. Uncategorized will not show unless there are products in the category.