Baseline by Switch

Here are the instructions to install Flair on the Baseline theme made by Switch.

How to edit your theme

  • Visit Shopify Admin > Themes and click Actions > Edit code.

Install Flair product badges

On product pages

Edit sections/product.liquid:

<h1 class="break-words font-heading {{ settings.template_heading_size }}">{{ product.title }}</h1>
<div data-flair-product-badge data-product-id={{ product.id }}></div>

And add line 2.

On collection pages

Edit snippets/product-grid-item.liquid:

<div class="{{ title_class }} break-words">
{% if settings.product_grid_show_vendor and product.vendor != '' %}
<p class="mb-1 text-{{ section_color }}-meta {% if sold_out %} line-through{% endif %}">{{ product.vendor }}</p>
{% endif %}
<p aria-hidden="true" class="product-grid-title {% if sold_out %}text-{{ section_color }}-meta line-through{% endif %}">{{ product.title }}</p>
<div data-flair-product-badge data-product-id={{ product.id }}></div>
</div>

And add line 6.

On older versions edit snippets/product-loop.liquid

Install Flair banners

Edit layout/theme.liquid:

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

And add line 2.

Additional Resources