How to change Shop page default title WooCommerce | themelocation

How to change Shop page title WooCommerce

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.

WooC default shop title screenshot - before

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";
        }
    }

WooC default shop title screenshot - after

The above snippet can be copied to your child theme’s functions.php file.

No comments yet.

Leave a Reply