You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %}let's build a list of collections based on a menu of collections.{% endcomment %}
{% comment %}this can be added to a page or collection - I'm assuming collection.{% endcomment %}
{% comment %}to start you need a menu which contains a list of links to collections.{% endcomment %}
{% comment %}this is a barebones version - which is supposed to be pulled into a theme so edit grid/loop etc as required{% endcomment %}
{% comment %}for custom shopify theme development email design at liquid dot gallery {% endcomment %}
{% comment %} our menu of collections has the handle "in-wild" {% endcomment %}
{% assign mastercollection = collection %} {% comment %}don't need this if using a page - use it to escape the for loop and reassign original collection.{% endcomment %}
{% for link in linklists['in-wild'].links %} <!-- #for1 --> {% comment %}for every link in the menu {% endcomment %}
{% if link.type == 'collection_link' %} <!-- #if1 --> {% comment %}If we have a collection link.{% endcomment %}