How to Change WooCommerce Shop Page Title

The default Shop page for WooCommerce online store will show the “Shop” at the top of products row. In this tutorial, i will demonstrate 2 code snippets to update or hide the page title for default WooCommerce Shop page.

WooCommerce Default Shop Page Title

WooCommerce Default Shop Page Title

Option 1 : Change Shop Page Title

In order to change the title from “Shop” to any title, you can put below code to your  end of your theme functions.php file (in your theme folder):

add_filter( 'woocommerce_page_title', 'custom_woocommerce_page_title');
function custom_woocommerce_page_title( $page_title ) {
  if( $page_title == 'Shop' ) {
    return "WooCommerce Demo Products";
  }
}

Refresh (F5) Woocommerce Shop Page, you can see it’s changed:

WooCommerce Custom Shop Page Title

WooCommerce Custom Shop Page Title

Option 2 : Hide Shop Page Title

If you want to hide the “Shop” page title, you can put below code to your theme functions.php (in your theme folder):

add_filter('woocommerce_show_page_title',false);

Refresh (F5) Woocommerce Shop Page, you can see Shop Page Title is lost:

Hide WooCommerce Shop Page Title

Hide WooCommerce Shop Page Title

Hope above snippets can help you to customize your shop easily. Cheers!

Leave a Reply

5 Comments on "How to Change WooCommerce Shop Page Title"

Notify of
avatar
Dav
Guest

Hi, thanks for the info you shared with us..
i have a problem ith my woocommerce installation, i coul not translate the shop page title in different languages so i preferred to hide it, but if you know any solution to translate page title and labels in woocommerce please let me know.
thanks a lot

Nidhi jain
Guest

It’s not working!

The correct function is:

add_filter('woocommerce_show_page_title','woo_hide_page_title');
function woo_hide_page_title() {
	return false;
}
Mazepress
Guest
add_filter('woocommerce_show_page_title', create_function('$result', 'return false;'), 20);

IS the function I use to strip this. I put it inside a conditional to decide where to apply it if I am removing the WooCommerce title. This was the only way I could make it work with Genesis anyway.

Hotel travel
Guest

May I simply just say what a relief to discover a person that genuinely knows what
they are talking about on the internet. You definitely realize how to bring a problem to light and make it important.
A lot more people must look at this and understand this side of your story.
I can’t believe you are not more popular given that you surely have
the gift.

Steve Green
Guest

My website has double headers on each page. The first header is ok but the second header which generated by Woocommerce is hidden by CSS ‘display:none;’. I wanna remove the Woocommerce header but when I’ve tryed to insert your code:
add_filter(‘woocommerce_show_page_title’,false);

but this is calls an Error:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /web1/mcgtimber.co.uk/wp-includes/class-wp-hook.php on line 274

Try to find ‘h1’ in a code:
http://www.mcgtimber.co.uk/product/32mm-x-150mm-loglap-softwood-timber-cladding/

What did I do wrong?

wpDiscuz