Superstore + Flair Shopify theme guide
By: Out of the Sandbox
We've put together this guide for setting up Flair in the Superstore Shopify theme by Out of the Sandbox. 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.liquid:
{% if template == 'index' %}
<h2 class="product-title">
{% else %}
<h1 class="product-title">
{% endif %}
{% unless onboarding %}
{{ product.title }}
{% else %}
{{ 'onboarding.product.title' | t }}
{% endunless %}
{% if template == 'index' %}
</h2>
{% else %}
</h1>
{% endif %}
<div data-flair-product-badge data-product-id={{ product.id }}></div>
And add line 16.
On collection pages
Edit snippets/product-grid-item.liquid:
<h2 class="productitem--title">
<a href="{{ product_link }}" data-product-page-link>
{{ product_title }}
</a>
</h2>
<div data-flair-product-badge data-product-id={{ product.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
- Flair Theme Install Guides - The full list of Flair theme install guides