Shopify themes, liquid, logos, and UX
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
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
Solved! Go to the solution
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.
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
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.
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