removing product details header only for "Product Description" text, changed descript...
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 4 Aug 2016 16:59:35 +0000 (12:59 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 4 Aug 2016 16:59:35 +0000 (12:59 -0400)
functions.php
js/app.js
js/custom/pageSetup.js

index 1f062bb..41f0894 100644 (file)
@@ -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' ]);
index d4346c3..071b096 100644 (file)
--- 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
index e209130..d99eb9a 100644 (file)
@@ -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