Remove Product Meta ‘Categories’ in a Product Page – WooCommerce

Remove Product Meta ‘Categories’ in a Product Page – WooCommerce

By default, WooCommerce product categories are displayed at the bottom of a product page just under the add to cart button.

You can remove these from the layout by removing the woocommerce_template_single_meta action from the product summary, in your themes functions.php

STEPS TO REMOVE PRODUCT META CATEGORIES

  1. Open Wordpress admin panel, go to Appearance > Editor 
  2. Open function.php theme file
  3. Add the following code at the bottom of function.php file
  4. Save the changes
  5. Refresh the product page, now the description heading is gone.

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

Acoustic Download


CodeGear Themes
CodeGear Themes

Branding, Web Design & Development, Digital Marketing, WordPress & Shopify Development Team