Metafield labels are not showing on site

I’m trying to add some ‘labels’ or ‘tags’ or whatever you want to call them to some products on my site such as “NEW” or “BEST SELLER”.

I’ve already tried the solution in this post

https://community.shopify.com/post/1854472

But it’s still not showing.

Does anyone have any other tips or help?

Many thanks,

ET.

Hi @edens_temple ,

You can go to Online Store -> ThemesEdit Codecard-product.liquid (Dawn theme) → Add the line of code to the position you want to display:

{% for tag in card_product.tags %}
              <!-- Code to display or process each item -->
            {%- if tag == "new" -%}
                <div class="card__badge top left">
                  <span
                    id="NoMediaStandardBadge-{{ section_id }}-{{ card_product.id }}"
                    class="badge badge--bottom-left color-{{ settings.sold_out_badge_color_scheme }}"
                  >
                    {{ tag }}
                  </span>
                </div>
            {%- endif -%}
          {% endfor %}

Result:

Note: you need to add tag to product

→ If you want to custom label quickly, you should use supporting apps such as: BSS: Product Labels & Badges,..

Pictures after using the app: