admin管理员组文章数量:1415636
I have a woocommerce shop with 2000+ products. I have set the shop catalog to show subcategories AND products. However, there are some categories that are so vague that there is no need to show any products until customer narrows filter.
I would therefore like to omit products from said pages to help with page load speed and customer confusion.
Something like.
If category id = 123
echo
<style>
.subcategories-div {display:block}
.products-div {display:none}
</style>
But then obviously, not do it via css.
Thanks
I have a woocommerce shop with 2000+ products. I have set the shop catalog to show subcategories AND products. However, there are some categories that are so vague that there is no need to show any products until customer narrows filter.
I would therefore like to omit products from said pages to help with page load speed and customer confusion.
Something like.
If category id = 123
echo
<style>
.subcategories-div {display:block}
.products-div {display:none}
</style>
But then obviously, not do it via css.
Thanks
Share Improve this question edited Aug 14, 2019 at 9:38 nmr 4,5672 gold badges17 silver badges25 bronze badges asked Aug 14, 2019 at 8:36 Phi CaoPhi Cao 111 bronze badge1 Answer
Reset to default 1Maybe you want to try adding products to subcategory, but not showing them on main categories. Then when user filters and goes to subc, you show products.
Link
本文标签: categoriesWoocommerce category show subcategories onlyomit posts for specific category
版权声明:本文标题:categories - Woocommerce category show subcategories onlyomit posts for specific category 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745243300a2649440.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论