How To Use Linklist In A Shopify Template File?

Share Now

Share on facebook
Share on pinterest
Share on twitter
Share on linkedin
Share on email

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>
Nahid Mahamud

Nahid Mahamud

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