仅在 WooCommerce 单个产品页面中隐藏某些产品的选项卡 [英] Hiding tabs only for some products in WooCommerce single product pages
问题描述
我想知道如何仅在某些单个产品页面上隐藏或删除 WooCommerce 选项卡(如果可能,使用 css 或 jquery 将它们保留在其他页面上)?
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 标签:class="woocommerce-tabs wc-tabs-wrapper"
Woocommerce div tabs: class="woocommerce-tabs wc-tabs-wrapper"
推荐答案
删除某些单个产品上的 WooCommerce 选项卡非常容易.您可以使用 CSS 轻松完成此操作.每个 WC 产品都有一个唯一的产品 ID,请检查此 http://prntscr.com/dp2c79 ,您将使用浏览器检查元素或源代码找到它.查找产品 ID,然后对该产品 ID 使用显示:无"选项卡.
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.
示例:#product-834 .tabs {display: none !important;}
Example: #product-834 .tabs {display: none !important;}
问候,
这篇关于仅在 WooCommerce 单个产品页面中隐藏某些产品的选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!