By default, WooCommerce names the shop, simply “Shop”. While this generic title is probably adequate for most uses, you might find that you wish to change it to a custom title.
There are some ways to change the title, including using translation plugins (that will allow you to “translate” the string “Shop” to what you want), and SEO plugins, such as Yoast SEO, that allows you to change both the shop title and description.
You can even directly modify the shop’s title and slug from the “All Pages” screen on the dashboard, by choosing “Quick Edit” under your “Shop” page. However, if for whatever reason you need to do it programmatically, the following snippet will do the trick:
add_filter( 'woocommerce_page_title', 'woo_shop_page_title');
function woo_shop_page_title( $page_title ) {
if( 'Shop' == $page_title) {
return "Your Replacement Title Here";
}
}
The above snippet can be copied to your child theme’s functions.php
file.
Hello there,
I have been reading all over the internet about changing the shop title page from Woocommerce. However, somehow my Woocommerce page doesn’t show a title at all. Do you have any idea how I can make the title vissible? You would be a great help!
Thanks,
Anne
You need to add this line just before that last “}” in the snippet:
return $page_title;