Flex by Out of the Sandbox

Here are the instructions to install Flair on the Flex theme made by Out of the Sandbox.

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:

<h1 class="product_name title">
{% if section_id == 'quickshop' %}
<a href="{{ product.url }}">{{ product.title }}</a>
{% elsif section_onboarding %}
{{ 'homepage.onboarding.product_title' | t }}
{% else %}
{{ product.title }}
{% endif %}
<div data-flair-product-badge data-product-id={{ product.id }}></div>

And add line 10.

On collection pages

Edit snippets/product-thumbnail.liquid:

<p class="product-thumbnail__title">{{ product.title | escape }}</p>
<div data-flair-product-badge data-product-id={{ product.id }}></div>

And add line 2.

On search pages

Edit sections/search__main.liquid:

<h3 class="search-result__title">
<a href="{{ item.url }}" title="{{ item.title | escape }}">{{ item.title }}</a>
<div data-flair-product-badge data-product-id={{ item.id }}></div>

And add line 4.

Install Flair banners

Edit layout/theme.liquid:

<div data-flair-banner></div>
<div class="dynamic-sections">
{{ content_for_layout }}

And add line 1.

Additional Resources