Exclude a Collection from the Collection list page

Solved

Exclude a Collection from the Collection list page

EC23
Excursionist
23 1 5

I created a collection (that excludes certain items) to use for my "Shop All" page.

 

This collection now shows on the Collections list page and I do not want it to. There is no way to select certain collections to show on this page. How do I exclude the unwanted Collection form the Collections List page?

 

Screenshot 2023-12-26 at 1.46.10 PM.png

Accepted Solution (1)
EC23
Excursionist
23 1 5

This is an accepted solution.

Thanks, but I ended up creating a new Collection Page and specifying all the correct Collections to it...I now point my Collection menu to it.

View solution in original post

Replies 5 (5)
EC23
Excursionist
23 1 5

Not sure what you mean by "featured collection", my theme does not have that.  Can you provide a screenshot?

EC23
Excursionist
23 1 5

Oh I got you now...Im not trying to add it on the Home Page.  This is a Collection List page on the Dawn theme...it is its own page.

 

Screenshot 2023-12-26 at 3.03.12 PM.png

 

Once you click on the Collection page, it shows like I provided in the original screenshot. But I want to exclude one of the collections

EC23
Excursionist
23 1 5

This is an accepted solution.

Thanks, but I ended up creating a new Collection Page and specifying all the correct Collections to it...I now point my Collection menu to it.

PaulNewton
Shopify Partner
7721 678 1619

This varies widly by theme, ALWAYS provide specifics such as examinable urls don't make people guess.

For vintage themes 

https://help.shopify.com/en/manual/online-store/themes/themes-by-shopify/vintage-themes/customizing-... 

 

example for OS.20 Dawn theme

https://github.com/Shopify/dawn/blob/main/sections/main-list-collections.liquid#L32 

after the collection loop add

{% if collection.handle == "EXCLUDED-COLLECTION-HANDLE" %}{% continue %}{% endif %}

💣NOTE: this removes an item from pagination creating an offset that will grow with more collections excluded so you will have to fix the offset.

 

If you need this customization then contact me by email for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


gr_trading
Shopify Partner
2000 147 205

You can create a metafield at collection level and add a class to parent node and write the CSS code to hide it.

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