how to hide the collection in the collection list but still show on the homepage?

Solved

how to hide the collection in the collection list but still show on the homepage?

JacJacC
Excursionist
42 0 9

can any one has any suggestion on how to hide the collection in the list but still show on the homepage??

 

i tried to use some of the code i found but seems it is not fit for the theme "dawn"

 

My code is not the same as your, i tried to amend the code but it was getting worst, can anyone help on this? I just want to hide the collection on the collection list, but keep on showing it in the home page, can one can help? my code is like below.....

 

 

{%- for collection in collections -%}
<li
class="collection-list__item grid__item{% if settings.animations_reveal_on_scroll %} scroll-trigger animate--slide-in{% endif %}"
{% if settings.animations_reveal_on_scroll %}
data-cascade
style="--animation-order: {{ forloop.index }};"
{% endif %}
>

Accepted Solution (1)

gr_trading
Shopify Partner
2040 149 206

This is an accepted solution.

Hi @JacJacC 

 

Don't know you are hiding your collection at collection list.

 

Here are my solution.

 

1. Create a metafield at collection level and set it's value to false.

 

2. Custom code in theme which will check the metafield value and add class which will hide the collection.

 

3. Also check the for the current page and add another class to collection which will supersede the hide class.

 

Hope this will help...

 

Let me know if you are willing to hire, it's a quick fix which will not take more than an hour.

For any custom development WhatsApp or connect at Email ID: support@grtrading.in for quick consultation. | Shopify Free codes
To support Buy Me a Coffee

View solution in original post

Replies 5 (5)

Zqdo
Shopify Partner
803 32 64

What's the link to the website?

banned
JacJacC
Excursionist
42 0 9

gallery0206.com

KetanKumar
Shopify Partner
37596 3668 12156

@JacJacC 

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community!😊
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
JacJacC
Excursionist
42 0 9

my site URL is gallery0206.com

gr_trading
Shopify Partner
2040 149 206

This is an accepted solution.

Hi @JacJacC 

 

Don't know you are hiding your collection at collection list.

 

Here are my solution.

 

1. Create a metafield at collection level and set it's value to false.

 

2. Custom code in theme which will check the metafield value and add class which will hide the collection.

 

3. Also check the for the current page and add another class to collection which will supersede the hide class.

 

Hope this will help...

 

Let me know if you are willing to hire, it's a quick fix which will not take more than an hour.

For any custom development WhatsApp or connect at Email ID: support@grtrading.in for quick consultation. | Shopify Free codes
To support Buy Me a Coffee