Skip to content

Instantly share code, notes, and snippets.

@joe-dempsey
Created April 25, 2019 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joe-dempsey/4b7ffac3207131871cf72d819773c037 to your computer and use it in GitHub Desktop.
Save joe-dempsey/4b7ffac3207131871cf72d819773c037 to your computer and use it in GitHub Desktop.
menu shopify nested
<ul class="parent">
{% for link in linklists.main-menu.links %}
<li><a href="{{ link.url }}">{{ link.title }}</a>
{% if link.links != blank %}
<ul class="child">
{% for child_link in link.links %}
<li><a href= "{{ child_link.url }}">{{ child_link.title }}</a>
{% if child_link.links != blank %}
<ul class="grandchild">
{% for grandchild_link in child_link.links %}
<li><a href= "{{ grandchild_link.url }}">{{ grandchild_link.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment