Remove Product Meta ‘Categories’ in a Product Page – WooCommerce (ok)

https://www.codegearthemes.com/blogs/woocommerce/remove-product-meta-categories-in-a-product-page-woocommerce

C:\xampp\htdocs\jp1\wp-content\themes\muum-child\functions.php

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

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

  • CodeGear

  • October 13, 2018

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 );

Last updated