How do I hide one single collection from all collection page?

Solved
Highlighted
New Member
15 0 0

Hi,

Website: https://pilates-with-amelia.myshopify.com/

PW: whawtu

I want to hide 'Choose your plan' collection on the all collection page.

https://pilateswithamelia.com/collections

Thanks in advance.  

Screen Shot 2020-09-08 at 2.28.15 pm.png

0 Likes
Highlighted

This is an accepted solution.

Hi AmeliaMckie

If you want to hide one single collection from all collection page?

Place the following code in the list-collections.liquid file.

If this file doesn't exist, create one in the Templates directory of your theme.

 

{% for collection in collections %}
{% unless collection.title == 'collection title that you want to hide' %}
<!-- Collection information here -->
{% endunless %}
{% endfor %}

 

You can also check this link. It has useful tips.

https://shopify.dev/tutorials/customize-theme-change-collections-page

 

Want to modify or incorporate custom changes on store, Hire us
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Whats app
Free Website Review and advice for sale from Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO ; Digital Marketing & amp | Site Speed Optimization | Performance Site Audit
0 Likes
Highlighted
New Member
15 0 0

Hi, 

That code and link didn't seem to help.

I did use the navigation collection > all collections but I just don't want that one collection in there.

0 Likes
Highlighted
New Member
15 0 0

Scrap that, I got it to work. Thanks!

0 Likes