WooCommerce:如何在商店页面中隐藏/删除产品标题下的类别?

我想从商店页面(目录)中隐藏或删除类别元数据, 该页面正显示在我商店的产品标题下。我已经尝试了几件事, 但是没有任何效果。

我累了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-details .posted_in { display: none; }

它为我工作

你尝试使用的.product_meta类不在目录页面上, 而是在产品详细信息页面上。

来源:

https://www.srcmini02.com/66687.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_40375.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?