Your cart is currently empty!
Remove Page Title Conditionally WooCommerce
โ
by
Use this code in your child themes functions file to conditionally remove taxonomy page titles when using WooCommerce.
add_filter( 'woocommerce_show_page_title', 'remove_product_category_title' ); function remove_product_category_title( $title ) { if ( is_product_category() ) { return false; // Return false to hide the title } return $title; // Return original title for other pages }
Swap out this line to target specific archive page types like product category and product tag archive pages :
if ( is_product_category() ) {
You can extend this code to do anything you like.
Need More Coding Help?
Book a Consultation
Free
$0
Access only to all free tutorials per month.
Tutorial Request
Includes code guarantee and coding support.
Monthly
$75
Access to 10 premium tutorials per month.
Tutorial Request
Includes code guarantee and coding support.
Yearly
$500
Access to 15 premium tutorials per month.
Monthly Tutorial Request
Includes code guarantee and priority coding support.
Was This Tutorial Helpful?