Website Building » WooCommerce » How do I hide categories from being displayed on shop page WooCommerce?

How do I hide categories from being displayed on shop page WooCommerce?

Last updated on September 24, 2022 @ 9:47 pm

If you would like to hide categories from being displayed on your shop page in WooCommerce, there are a few different ways you can go about doing this.

The first way to hide categories from being displayed on your shop page is to simply ignore them when creating your shop’s content. This can be done by adding a filter in your WooCommerce settings that excludes all categories from appearing on your shop page.

Alternatively, you can add a WooCommerce filter that hides all categories from being displayed on your shop pages. To do this, you’ll first need to create a new filter in your WooCommerce settings. Once you’ve created the filter, you’ll need to add the following code to it:

PRO TIP: If you are using a WooCommerce theme and would like to hide certain categories from being displayed on the shop page, you can do so by following these steps:

1. Go to Appearance > Customize in your WordPress dashboard.

2. Click on the WooCommerce tab.

3. Expand the Product Catalog section.

4. Under the Catalog Display setting, select “Hide Categories.”

5. Save your changes.

category_exclude=’categories’

After adding the code, your filter will look like the following:

Once you have added the filter, you can now use it to hide all categories from being displayed on your shop pages. To do this, you’ll simply need to put the filter into action and change the category_exclude setting to ‘categories’.

Overall, both of these methods are effective ways of hiding categories from being displayed on your shop page in WooCommerce. However, the first method is easier to use and is likely to be more popular among WooCommerce users.

Morgan Bash

Morgan Bash

Technology enthusiast and Co-Founder of Women Coders SF.