How can I remove item counts from categories in Fashe theme?

Hey Guys, I’m using the fashe theme on shopify and on my collection page is this side menu. I want to remove the number of items that are included in the shown categories. Can I do this by editing the code. I would love to hear your advice on this. Thank you very much in advance.

Kind Regards

Sadie2022

Hi @sadie2022

If you look in the file:

snippets/collection-sidebar.liquid

You should see around line 9 something like this:

 <li class="p-t-4"><a class="s-text13 {% if forloop.first %}active1{% endif %}" href="{{ collection.url }}">{{ collection.title }} ({{ 'collections.general.items_with_count' | t: count: collection.all_products_count }})</a></li>

Towards the end of that line - between the ({{ and }}) is what is causing that count of products to appear on the page.

Therefore if you delete from the opening ( to the closing ) so that the line looks like this:

<li class="p-t-4"><a class="s-text13 {% if forloop.first %}active1{% endif %}" href="{{ collection.url }}">{{ collection.title }}</a></li>

You should no longer see that count of products being rendered to the page.

I could only base this on an old Github repository of the theme though so yours may look a little different.

2 Likes

Hello. Thank you so much for your help. I was honestly almost giving up on this because I had no idea how to do it. I really appreciate that. Thank you.

1 Like

I’m just facing another major problem. The “remove” button on the cart page is not working. When clicking the “remove” button the checkout page appears. This happens as well when I’m clicking the “update cart” button. Could you help me out with this problem as well, please? Thank you very much in advance.

Hi @sadie2022

Can you create a new thread on the forum just so that the answers don’t get mixed up.

And if possible link to your site in the new post?

Thanks

1 Like

Of course, I will do that. I’m just busy right now and need to get some things done. I will be back online in roundabout 4-5 hours. I hope that’s okay for you. And again thank you so much for helping me.

Kind Regards

I just created a new thread. It would be amazing if you could help me out with this. Thank you Here is the link to get to the issue: https://community.shopify.com/post/1567745