Liquid Theme
Get Reactify Search installed onto your Shopify theme.
1. Prepare your theme
2. Add script and data tags
<html>
<head>
<script src="{{ 'reactify.js' | asset_url }}" defer></script>
</head>
<body>
{%- render "reactify" -%}
...
</body>{%- if template.name contains 'search' -%}
<script id="reactify-data" type="application/json">{{ page | json }}</script>
{%- endif -%}
{%- if template.name contains 'collection' -%}
<script id="reactify-data" type="application/json">{{ collection | json }}</script>
{%- endif -%}3. Add mount points
<div id="reactify-mount-instant-search"></div>4. Implement scripts for the different areas
Last updated