testing is_shop conditional to change shop page title
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 29 Jun 2016 18:25:02 +0000 (14:25 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 29 Jun 2016 18:25:02 +0000 (14:25 -0400)
functions.php

index b7ca211..b4e02ad 100644 (file)
@@ -161,7 +161,9 @@ add_action( 'woocommerce_single_product_summary', 'shareThis', 20);
 
 add_filter( 'woocommerce_page_title', 'woo_shop_page_title');
 function woo_shop_page_title( ) {
-    return "All Tours";
+    if ( is_shop()){
+        return "All Tours";
+    }
 }
 add_theme_support('post-thumbnails');
 set_post_thumbnail_size(120, 100, true);