Hide product title and categories on product page
e-commerce, woocommerce, wordpress
Solution
For compatibility with future updates of your theme and plugins, I've found a better way to do this is through WooCommerce hooks. To remove both the title and the meta-data items from your Single Product Page, you should put the following two lines in your theme's main functions.php:
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );
You can find more info about changing, or re-ordering your Product Page Contents in this post.
Problem
How could I hide product title and categories on a single product page in WooCommerce: I know I can edit/comment the source code but then I have to manually do it after each update. Is there a function I can add to theme functions.php that can remove product title and categories from single product page?