2015-07-13 220 views
1

我正在使用wordpress网站的woocommerce插件。 此简码显示每个列出类别的名称和产品数量。WooCommerce:使用产品类别shortcode

[product_categories orderby="name" order="ASC" columns="4" ids="16,17,14,15,18,22,23,24,25,29,30"] 

我只需要显示名称,并丢弃每个类别内的产品数量。

我该怎么做?

回答

0

使用jQuery来隐藏计数。

只需在该页面调用的js文件中添加代码:jQuery('h3 .count').hide();

结果如下:

上一个:

enter image description here

目前:

enter image description here

相关问题