Skip to content

Commit d3eead0

Browse files
authored
Add "class or id to form" snippet
1 parent 8e655a5 commit d3eead0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ This is a list of useful Shopify Snippets that I often reference while developin
88
* [Display Articles in a Blog](#display-articles-in-a-blog)
99
* [Display Links in a Linklist](#display-links-in-a-linklist)
1010
* [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)
1112

1213

1314
## Display Products in a Collection
1415
```html
1516
<div class="grid">
16-
<h3 class="text-center avenir-head">Products</h3>
17+
<h3 class="text-center">Products</h3>
1718
{% for product in collections.collection-name.products %}
1819
<div class="grid__item medium-up--one-third">
1920
<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
8283
<a href="{{ cart.items.first.product.collections.first.url }}" title="Continue Shopping">Continue Shopping</a>
8384
```
8485

86+
## Add Class or Id to Form
87+
```html
88+
{% form 'form_name', class: 'custom-class-name' %}
89+
```
90+
8591

8692

0 commit comments

Comments
 (0)