changed breadcrumbs products to experiences, changed shop to 'experiences'
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 29 Jun 2016 18:20:47 +0000 (14:20 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 29 Jun 2016 18:20:47 +0000 (14:20 -0400)
functions.php
js/app.js
js/custom/pageSetup.js

index 9c2004c..e6cf51e 100644 (file)
@@ -159,7 +159,10 @@ function shareThis(){
 }
 add_action( 'woocommerce_single_product_summary', 'shareThis', 20);
 
-
+add_filter( 'woocommerce_page_title', 'woo_shop_page_title');
+function woo_shop_page_title( ) {
+    return "Experiences";
+}
 add_theme_support('post-thumbnails');
 set_post_thumbnail_size(120, 100, true);
 /**
index e4d413f..9c05caf 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -106,12 +106,13 @@ $(document).ready(function () {
     $("#tab-description").find("h2").html("Tour Description");
     $(".html5_video_tab").find('a').html("Video");
     
-    console.debug($("ul.products li:nth-child(3n-2)").html());
-    //ul.products li:nth-child(3n) { clear: right; }
-    
+    // wrap every 3 li elements in a div class=row so we can add data equalizer
     var divs = $("ul.products > li");
     for(var i = 0; i < divs.length; i+=3) {
-  divs.slice(i, i+3).wrapAll("<div class='row categories data-equalizer'></div>");
-}
-
+        divs.slice(i, i+3).wrapAll("<div class='row categories data-equalizer'></div>");
+    }
+    
+    // change breadcrumbs 'products' to 'experiences'
+    $(".post-product-archive").find('span').text('Experiences');
+    $("[property=name]:contains('Products')").html('Experiences');
 });
index 918f174..981ede6 100644 (file)
@@ -97,12 +97,13 @@ $(document).ready(function () {
     $("#tab-description").find("h2").html("Tour Description");
     $(".html5_video_tab").find('a').html("Video");
     
-    console.debug($("ul.products li:nth-child(3n-2)").html());
-    //ul.products li:nth-child(3n) { clear: right; }
-    
+    // wrap every 3 li elements in a div class=row so we can add data equalizer
     var divs = $("ul.products > li");
     for(var i = 0; i < divs.length; i+=3) {
-  divs.slice(i, i+3).wrapAll("<div class='row categories data-equalizer'></div>");
-}
-
+        divs.slice(i, i+3).wrapAll("<div class='row categories data-equalizer'></div>");
+    }
+    
+    // change breadcrumbs 'products' to 'experiences'
+    $(".post-product-archive").find('span').text('Experiences');
+    $("[property=name]:contains('Products')").html('Experiences');
 });