Editions + Flair Shopify theme guide
By: Pixel Union
We've put together this guide for setting up Flair in the Editions Shopify theme by Pixel Union. This page includes instructions for setting up Flair badges (aka labels or stickers) and Flair banners.
How to edit your theme
- Visit Shopify Admin > Themes and click Actions > Edit code.
Install Flair product badges
On product pages
Edit snippets/product-contents.liquid:
<div data-flair-product-badge data-product-id={{ product.id }}></div>
{% when 'vendor' %}
And add line 1.
On collection pages
Edit snippets/small-product-item.liquid:
<h3 class="product-item__title">
<a href="{{ itemType.url | within: collection }}">
{{ itemType.title }}
</a>
</h3>
<div data-flair-product-badge data-product-id={{ itemType.id }}></div>
And add line 6.
Install Flair banners
Edit layout/theme.liquid:
<body>
<div data-flair-banner></div>
And add line 2.
Additional Resources
- Flair badge layout guide - additional badge options including: multi-promotions, multiple badges, spacing and alignment, variant badges, and more
- Flair banner layout guide - additional banner options including: multi-promotions, spacing, and more
- Flair preloading guide - learn how to customize how Flair badges and banners are loaded to work better with your theme
- Product badge examples - a complete product badge guide with real-world examples