How to Remove Product Categories in WooCommerce

When WooCommerce displays the single product page, by default it shows the products categories. If you’re not using categories to organize your products, it’s usually a better idea to remove this meta information altogether.

All you need to do is to insert this code into your theme’s functions.php file:

It won’t work if you add it to a custom plugin on your site; it needs to go specifically in the theme’s functions.php file.

There is another way to achieve the same result and this is to modify the template for displaying single products in WooCommerce. A custom version of the template file can be saved in your theme’s folder and this will then override the one that is used by WooCommerce as a fallback. Don’t worry about theme updates, they won’t affect your custom product template.

You will need to look for the template file called content-single-product.php in the folder woocommerce>templates. You then take that file and copy it into your theme’s folder. All customizations you now apply there will override the original file.

About Jean Galea

Jean Galea is a WordPress developer, entrepreneur and padel player. He is the founder of WP Mayor, the plugins WP RSS Aggregator and EDD Bookings, as well as the Mastermind.fm podcast. His personal blog can be found at jeangalea.com.

2 Responses

  1. Sadhana
    Sadhana July 24, 2018 at 22:21 | | Reply

    Nice information………. Thanks for sharing

  2. Joseph
    Joseph July 31, 2018 at 23:31 | | Reply

    Hey,

    very informative article
    Thank You…

Leave a Reply