I would like to know how can I hide or remove the WooCommerce tabs only on certain single product pages (keeping them on other pages using css or jquery if that's possible)?
Woocommerce div tabs: class="woocommerce-tabs wc-tabs-wrapper"
I would like to know how can I hide or remove the WooCommerce tabs only on certain single product pages (keeping them on other pages using css or jquery if that's possible)?
Woocommerce div tabs: class="woocommerce-tabs wc-tabs-wrapper"
It's very easy to remove the WooCommerce tabs on certain single products. You can easily do this using CSS. Every WC products have a Unique product id, please check this http://prntscr.com/dp2c79 , you will find this using Browser inspect element or source code. Find product id then Just use 'Display: none' tabs for that product id.
Example: #product-834 .tabs {display: none !important;}
Regards,
Is possible to use the dedicated
woocommerce_product_tabs
filter hook to remove tabs only for some products (on single product pages):Code goes in
function.php
file of your active child theme (active theme or in any plugin file).This code is tested and works.
Based on original WooCommerce snippet: Editing product data tabs