From 8e3ab87819fafd73584485baa2e9ec82980bd008 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 4 Aug 2016 12:59:35 -0400 Subject: [PATCH] removing product details header only for "Product Description" text, changed description tab to 'details' --- functions.php | 2 +- js/app.js | 2 +- js/custom/pageSetup.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 1f062bb..41f0894 100644 --- a/functions.php +++ b/functions.php @@ -70,7 +70,7 @@ function woo_product_tab_edits( $tabs ) { 'title' => __('Photos', 'woocommerce'), 'callback' => 'woo_photos_content' ); - + $tabs['description']['title'] = __('Details'); unset( $tabs[ 'reviews' ]); unset( $tabs[ 'additional_information' ]); diff --git a/js/app.js b/js/app.js index d4346c3..071b096 100644 --- a/js/app.js +++ b/js/app.js @@ -100,7 +100,7 @@ $(document).ready(function () { $(this).addClass("data-equalizer-watch"); }); - $("#tab-description").find("h2").remove(); + $("#tab-description").find("h2:contains('Product Description')").remove(); $(".html5_video_tab").find('a').html("Video"); // wrap every 3 li elements in a div class=row so we can add data equalizer diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index e209130..d99eb9a 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -91,7 +91,7 @@ $(document).ready(function () { $(this).addClass("data-equalizer-watch"); }); - $("#tab-description").find("h2").remove(); + $("#tab-description").find("h2:contains('Product Description')").remove(); $(".html5_video_tab").find('a').html("Video"); // wrap every 3 li elements in a div class=row so we can add data equalizer -- 2.17.1