我想隐藏或删除商店页面(目录)中的类别元,该页面显示在我商店的产品 Headers 下 . 我尝试了几件事,但没有任何作用 .
我厌倦了CSS:
.product__categories {display:none!importamt;}
还有这个...
.product_meta .sku_wrapper {
display:none!important;
}
.product_meta .posted_in {
display:none!important;
}
我在功能上也累了这个 remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );
如何隐藏类别元?
1 回答
我用过这个:
它对我有用
您尝试使用的.product_meta类不在目录页面上 - 它位于产品详细信息页面上 .