We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Re: Re order Collection manually

Solved

Re order Collection manually

Samsara0900
Visitor
2 0 0

Hi 

Im struggling with manually changing the order of my collections. In the theme that I am using I only have a couple of options, oldest to newest or vica versa or A-Z. This is a pain if I say change a price in one of my older pructs and save as it then appear first in the collection list.

Im really new to this and an advisor mentioned that I may need to change some code, which is way above me.

Can anyone please point me in the right direction.

Any help gratefully received.

Thank You

Accepted Solution (1)

BlackCro
Shopify Partner
103 19 19

This is an accepted solution.

If you want to display the collections in a specific order, one work around we've used is to create a navigation menu that links to each collection arranged as you'd like them to appear. To do this go to Online Store, Navigation and click Add Menu. Give the menu a title of All Collections then +Add menu item for each collection and re-arrange into the order you'd like them to display. 

 

Screenshot 2024-09-11 at 11.04.52.png

 

Then in main-list-collection.liquid replacing the  {%- for collection in collections -%} with the following code. 

 

{% for link in linklists.all-collections.links %}
  {% assign collection = link.object %}

 

This will make the All Collections List display the collections in the order you set for the navigation menu. 

 

Hope this helps

Simon 

BlackCro.co.uk

CRO & Development Agency



Better Forms - Get a better contact form today!

View solution in original post

Replies 2 (2)

BlackCro
Shopify Partner
103 19 19

This is an accepted solution.

If you want to display the collections in a specific order, one work around we've used is to create a navigation menu that links to each collection arranged as you'd like them to appear. To do this go to Online Store, Navigation and click Add Menu. Give the menu a title of All Collections then +Add menu item for each collection and re-arrange into the order you'd like them to display. 

 

Screenshot 2024-09-11 at 11.04.52.png

 

Then in main-list-collection.liquid replacing the  {%- for collection in collections -%} with the following code. 

 

{% for link in linklists.all-collections.links %}
  {% assign collection = link.object %}

 

This will make the All Collections List display the collections in the order you set for the navigation menu. 

 

Hope this helps

Simon 

BlackCro.co.uk

CRO & Development Agency



Better Forms - Get a better contact form today!
Samsara0900
Visitor
2 0 0
Thank you so much Simon.
I will give that a go and let you know how it went.
Really appreciate your help.
Have a great day!

Kind Regards

Paul