Add blog category menu or filter with tags as submenu or subfilter in shopify

Add blog category menu or filter with tags as submenu or subfilter in shopify.

First create menu in shopify navigation and then add below code in liquid file.

<ul class="ctg">
   {% for link in linklists.blog.links %}
   <li class="{% if link.active or link.child_active %}active{% endif %}">
      <a href="{{ link.url }}">{{ link.title }}</a>
      {% if blog.all_tags != blank %}
      <ul class="tag">
         {% for tag in blog.all_tags %}
         <li class="tag">
            <a href="{{ shop.url}}/blogs/{{ blog.handle }}/tagged/{{ tag | handleize }}">{{ tag }}</a>
         </li>
         {% endfor %}
      </ul>
      {% endif %}
   </li>
   {% endfor %}
</ul>
Freelance Website Designer and Developer

Hire Our Website
Designer and Developer

Recent Solutions

Freelance Website Designer and Developer
Indoc Web Design

Copyright © 2024 All rights reserved
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram