From 0e4d5c3fed80d119cacb059df310a2e4b6e45623 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 29 Jun 2016 14:20:47 -0400 Subject: [PATCH] changed breadcrumbs products to experiences, changed shop to 'experiences' --- functions.php | 5 ++++- js/app.js | 13 +++++++------ js/custom/pageSetup.js | 13 +++++++------ 3 files changed, 18 insertions(+), 13 deletions(-) diff --git a/functions.php b/functions.php index 9c2004c..e6cf51e 100644 --- a/functions.php +++ b/functions.php @@ -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); /** diff --git a/js/app.js b/js/app.js index e4d413f..9c05caf 100644 --- 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("
"); -} - + divs.slice(i, i+3).wrapAll("
"); + } + + // change breadcrumbs 'products' to 'experiences' + $(".post-product-archive").find('span').text('Experiences'); + $("[property=name]:contains('Products')").html('Experiences'); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 918f174..981ede6 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -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("
"); -} - + divs.slice(i, i+3).wrapAll("
"); + } + + // change breadcrumbs 'products' to 'experiences' + $(".post-product-archive").find('span').text('Experiences'); + $("[property=name]:contains('Products')").html('Experiences'); }); -- 2.17.1