[英]Woocommerce How to hide product tab
I'm trying to hide or remove the tab itself but want to keep the product description. 我正在尝试隐藏或删除选项卡本身,但希望保留产品说明。 Is there a way to do this?
有没有办法做到这一点?
https://www.absolutept.com/product/electric-stimulation-machine-ev906/ https://www.absolutept.com/product/electric-stimulation-machine-ev906/
See how the word "description" appears - I want to remove that and the dot in front of it but keep everything else. 看看“描述”一词是如何出现的-我想删除它和它前面的点,但保留其他所有内容。
Thanks in advance. 提前致谢。
You should be able to add this to your functions.php file or custom plugin that you use as an alternate to your functions.php file 您应该能够将此添加到您的functions.php文件或自定义插件中,用作您的functions.php文件的替代品
add_filter('woocommerce_product_description_heading', false);
I haven't double checked it. 我没有仔细检查过。 But it should remove the title
但是应该删除标题
You have to remove this code snippet: 您必须删除以下代码段:
<ul class="tabs wc-tabs">
<li class="description_tab active">
<a href="#tab-description">Description</a>
</li>
</ul>
That should solve your problem. 那应该解决您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.