Skip to main content

linklists

All of the menus in a store.

Directly accessible in

  • Global

You can access a specific menu through the linklists object using the menu's handle.

<!-- Main menu -->
{% for link in linklists.main-menu.links -%}
{{ link.title | link_to: link.url }}
{%- endfor %}

<!-- Footer menu -->
{% for link in linklists['footer'].links -%}
{{ link.title | link_to: link.url }}
{%- endfor %}

Output

<!-- Main menu -->
<a href="/" title="">Home</a>
<a href="/collections/all" title="">Catalog</a>
<a href="/pages/contact" title="">Contact</a>


<!-- Footer menu -->
<a href="/search" title="">Search</a>
Was this section helpful?