Hot Line:

+1 (917) 730-2010

AI-Powered Web Development, SEO, Shopify & WordPress — Get a Free Consultation Today. Get Started

Tutorials

How To Add Product Tags On Product Page of Shopify

  • 18 Oct, 2022
  • 4 Comments
  • By WebSensePro
How To Add Product Tags On Product Page of Shopify

Adding product tags on the product page is an important part of Shopify store optimization. In this video, we’ll show you how to add product tags on the product page

Product tags on the product page of Shopify is a great way to help your customers find what they are looking for, and also helps you to organize your products. In this video I show you how to add product tags on the product page of Shopify, using the Dawn theme.

Add code in main-product.liquid

Add the following code in main-product.liquid file

<div class="product-tags">
  {% for tag in product.tags %}
  <span class="tag"><a href="/collections/all/{{ tag | handleize }}">{{ tag }}</a></span>
  {% endfor %}
</div>

Add code in base.css file

Add the following code in base.css file


.product-tags {
  width:90%;
}
.product-tags span{
    background-color: white;
    padding: 5px 15px 5px 15px;
    border-radius: 15px;
    border: 1px solid grey;
    display: inline-block;
    margin-top: 4px; }
4.7/5 · 12 votes
Tags:

    Comments

    Background Pattern

    Want to work with us?

    Let’s build your website, grow your traffic, and automate your business with AI.

    Background Pattern