Home » WooCommerce: Hide “Shop” Title @ WooCommerce Shop

WooCommerce: Hide “Shop” Title @ WooCommerce Shop

by adminkys

There are many snippets on the internet but many are out of date… so this is how to completely hide the Shop Page title in WooCommerce (plus: how to hide the title on WooCommerce Category and Tag pages). Enjoy!

How to Remove the WooCommerce Shop Page title

PHP Snippet 1: Remove Title @ WooCommerce Shop Page

/**
 * @snippet       Remove shop page title - WooCommerce Shop
 * @how-to        Get tutoraspire.com FREE
 * @author        Tutor Aspire
 * @compatible    WooCommerce 6
 * @donate $9     https://www.tutoraspire.com
 */

add_filter( 'woocommerce_show_page_title', 'tutoraspire_hide_shop_page_title' );

function tutoraspire_hide_shop_page_title( $title ) {
if ( is_shop() ) $title = false;
return $title;
}

PHP Snippet 2: Remove Title @ WooCommerce Product Category Pages

/**
 * @snippet       Remove cat page title - WooCommerce Cat pages
 * @how-to        Get tutoraspire.com FREE
 * @author        Tutor Aspire
 * @compatible    WooCommerce 6
 * @donate $9     https://www.tutoraspire.com
 */

add_filter( 'woocommerce_show_page_title', 'tutoraspire_hide_cat_page_title' );

function tutoraspire_hide_cat_page_title( $title ) {
if ( is_product_category() ) $title = false;
return $title;
}

PHP Snippet 3: Remove Title @ WooCommerce Product Archive Pages (Shop, Category, Tag, etc.)

/**
 * @snippet       Remove page title from all WooCommerce archive pages
 * @how-to        Get tutoraspire.com FREE
 * @author        Tutor Aspire
 * @compatible    WooCommerce 6
 * @donate $9     https://www.tutoraspire.com
 */

add_filter( 'woocommerce_show_page_title', '__return_null' );

You may also like