Skip to content

Instantly share code, notes, and snippets.

@atomgiant
Created March 14, 2018 18:19
Show Gist options
  • Save atomgiant/c1bbe1d690bc38195be4766b1671db56 to your computer and use it in GitHub Desktop.
Save atomgiant/c1bbe1d690bc38195be4766b1671db56 to your computer and use it in GitHub Desktop.
------------------
For products
------------------
1. Edit sections/product-template.liquid
2. Search for a line similar to:
<h1 itemprop="name">{{ product.title }} </h1>
3. Add the Flair include after it like this:
<h1 itemprop="name">{{ product.title }} </h1>
{% include 'flair-product-badges' %}
------------------
For collections
------------------
1. Edit snippets/grid-rework.liquid
2. Search for a line similar to:
<p class="h2 product-title">
3. Insert Flair before it like this:
{% include 'flair-product-badges' %}
<p class="h2 product-title">
------------------
For the mobile collection view
------------------
1. Edit snippets/product-price-mobile.liquid
2. Search for a line similar to:
<p class="h2 product-title">
3. And add Flair like so:
{% include 'flair-product-badges' %}
<p class="h2 product-title">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment