Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save carolineschnapp/523455 to your computer and use it in GitHub Desktop.
Save carolineschnapp/523455 to your computer and use it in GitHub Desktop.
Listing all collections in the shop
@celined
Copy link

celined commented Mar 19, 2015

Hi @jeicob, @MegiMoo and @Ubrwgn,
The code above does indeed go into the list-collections.liquid file
I just tried it out and it works perfectly. All I did was replace my existing code in list-collections.liquid with the above (note that you may need to tweak/remove the ul, li and h2/h3 tags to match your site's style).

Once the file is saved, go to 'Navigation' and add a new link list and name it 'Featured collections' and save it. You can then add the collection links and re-order them as needed. Hope this helps!

@rando1201
Copy link

This still isnt working for me.

@michael82605
Copy link

I've pasted the code in, created the link list and added it to the navigation. However, when I click on Featured collections on the navigation bar on my store, it brings me to /collections and shows all my collections in alphabetical order (basically the default). What am I missing here?
Also, isn't there a way to name the collection other than "Featured collections"? And can this functionality be applied to several collections? The goal here being to create a Shoes collection and a Pants collection for instance.

Thanks in advance.

@paulmist
Copy link

Am I correct in thinking there's no way to paginate the out put of the link list method?

@Hashmi898
Copy link

Hashmi898 commented Jul 10, 2020

thanks

@subhashgit
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment