remove php code from functions.php and using css to remove the reviews tab
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 19 Nov 2015 18:04:34 +0000 (13:04 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 19 Nov 2015 18:04:34 +0000 (13:04 -0500)
functions.php
style.css

index e505b29..378b7f5 100644 (file)
@@ -8,10 +8,7 @@
 /**
  * Initialize all the things.
  */
-remove_action( 'woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30);
-remove_action( 'woocommerce_product_tab_panels', 'woocommerce_product_reviews_panel', 30);
 require get_stylesheet_directory() . '/inc/init.php';
-
 /**
  * Do not add custom code / snippets here.
  * While Child Themes are generally recommended for customisations, in this case it is not
index a4e3651..94de8bf 100644 (file)
--- a/style.css
+++ b/style.css
@@ -32,6 +32,10 @@ Text Domain: galleria
 .site-main ul.products li.product .button{
     display: none !important;
 }
+.single-product div.product .woocommerce-tabs{
+    display: none;
+}
+/* end of custom css */
 .animated{
   -webkit-animation-duration: 1s;
   animation-duration: 1s;