Expanse + Flair Shopify theme guide

By: Archetype Themes
We've put together this guide for setting up Flair in the Expanse Shopify theme by Archetype Themes. 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-template.liquid:

{%- if isModal -%}
<p class="h2 product-single__title">
{{ product.title }}
</p>
{%- else -%}
<h1 class="h2 product-single__title">
{%- unless product.empty? -%}
{{ product.title }}
{%- else -%}
{{ 'home_page.onboarding.product_title' | t }}
{%- endunless -%}
</h1>
{%- endif -%}
<div data-flair-product-badge data-product-id={{ product.id }}></div>

And add line 14.

On collection pages

Edit snippets/product-grid-item.liquid:

<div class="grid-product__title">{{ product.title }}</div>
<div data-flair-product-badge data-product-id={{ product.id }}></div>

And add line 2.

Install Flair banners

Edit layout/theme.liquid:

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

And add line 2.

Additional Resources