File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,13 @@ This is a list of useful Shopify Snippets that I often reference while developin
8
8
* [ Display Articles in a Blog] ( #display-articles-in-a-blog )
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
+ * [ Add Class or Id to Form] ( #add-class-or-id-to-form )
11
12
12
13
13
14
## Display Products in a Collection
14
15
``` html
15
16
<div class =" grid" >
16
- <h3 class =" text-center avenir-head " >Products</h3 >
17
+ <h3 class =" text-center" >Products</h3 >
17
18
{% for product in collections.collection-name.products %}
18
19
<div class =" grid__item medium-up--one-third" >
19
20
<a href =" {{ product.url }}" ><img src =" {{ product.featured_image | product_img_url: '345x' }}" alt =" {{ product.title | escape }}" /></a >
@@ -82,5 +83,10 @@ This is a list of useful Shopify Snippets that I often reference while developin
82
83
<a href =" {{ cart.items.first.product.collections.first.url }}" title =" Continue Shopping" >Continue Shopping</a >
83
84
```
84
85
86
+ ## Add Class or Id to Form
87
+ ``` html
88
+ {% form 'form_name', class: 'custom-class-name' %}
89
+ ```
90
+
85
91
86
92
You can’t perform that action at this time.
0 commit comments