How To Use Linklist In A Shopify Template File?

Share Now

In Schema

   {
      "type": "link_list",
      "id": "blog_menu",
      "label": "Menu",
      "default": "main-menu"
    }

Here is the loop

<ul class="blog-nav-list">
   {% for link in linklists[section.settings.blog_menu].links %}
       <li><a href= "{{ link.url }}">{{ link.title }}</a></li>
   {% endfor %}
</ul>
Picture of Nahid Mahamud

Nahid Mahamud

Web Developer | Graphic Designer | WordPress & Woo-commerce Expert