File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ This is a list of useful Shopify Snippets that I often reference while developin
9
9
* [ Display Links in a Linklist] ( #display-links-in-a-linklist )
10
10
* [ Back or Continue Shopping link on Cart] ( #back-or-continue-shopping-link-on-cart )
11
11
* [ Add Class or Id to Form] ( #add-class-or-id-to-form )
12
+ * [ Add Icon or Image on Products with "new" Tag] ( #add-icon-or-image-on-products-with-new-tag )
12
13
13
14
14
15
## Display Products in a Collection
@@ -88,5 +89,12 @@ This is a list of useful Shopify Snippets that I often reference while developin
88
89
{% form 'form_name', class: 'custom-class-name', id: 'custom-id-name' %}
89
90
```
90
91
91
-
92
+ ## Add Icon or Image on Products with "new" Tag
93
+ ``` html
94
+ {% for mytag in product.tags %}
95
+ {% if mytag == 'new' %}
96
+ <a href =" {{product.url}}" ><img class =" new-product" src =" {{ 'new-circle.png' | asset_url }}" / ></a >
97
+ {% endif %}
98
+ {% endfor %}
99
+ ```
92
100
You can’t perform that action at this time.
0 commit comments