Retina + Flair Shopify theme guide

By: Out of the Sandbox
We've put together this guide for setting up Flair in the Retina 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:

{% else %}
{% if template == 'featured-product' %}<a href="{{ product.url }}">{% endif %}
{{ product.title | escape }}
{% if template == 'featured-product' %}</a>{% endif %}
{% endif %}
</{{heading_element}}>
<div data-flair-product-badge data-product-id={{ product.id }}></div>

And add line 7.

On collection pages

Edit snippets/product-thumbnail.liquid:

<div class="product-thumbnail__header">
<a href="{{ product.url | within: collection }}" class="product-thumbnail__title">
{{ product.title | escape }}
</a>

{% if settings.collection_price_position == 'right' %}
{{ product_card_price }}
{% endif %}
</div>
<div data-flair-product-badge data-product-id={{ product.id }}></div>

And add line 10.

Install Flair banners

Edit layout/theme.liquid:

<body>
<div data-flair-banner></div>

And add line 2.

Additional Resources