WP Mayor is supported by its audience. Our recommendations are based on our experts’ research and hands-on testing. If you purchase through a link on our website, we may earn a commission. Here’s why you can trust us.

How to Remove Product Categories in WooCommerce

  Introduction
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.
WP Mayor is supported by its audience. Our recommendations are based on our experts’ research and hands-on testing. If you purchase through a link on our website, we may earn a commission. Here’s why you can trust us.
 Table of contents
Free Checklist

Get access to 10+ proven tactics to skyrocket your eCommerce sales

logo 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:

remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );

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.

Free Checklist

Get access to 10+ proven tactics to skyrocket your eCommerce sales

Jean Galea
Jean Galea
Jean Galea is an investor, entrepreneur, and blogger. He is the founder of WP Mayor, the plugins WP RSS Aggregator and Spotlight, as well as the Mastermind.fm podcast. His personal blog can be found at jeangalea.com.
Recommended For You
Recommended For You
Get more expert advice like this delivered to your inbox every week.
Join thousands of designers, developers, and marketers who trust our experts to find and test the best tools and services for your website.
By signing up to our newsletter, you agree to receive electronic communications from WP Mayor that may include advertisements.
Get more expert advice like this delivered to your inbox every week.
Join thousands of designers, developers and marketers who trust our experts to find and test the best tools to build, improve, and optimize their websites.
By signing up to our newsletter, you agree to receive electronic communications from WP Mayor that may include advertisements.
Join the Conversation

4 Responses

Leave a Reply

Your email address will not be published.

From web hosting to WooCommerce plugins and backup services, we have put together a collection of exclusive coupons and deals just for you.
WP Mayor_Icon_white

Get access to 10+ proven tactics to skyrocket your eCommerce sales

Reader Survey

Supercharge your WooCommerce store!