EasySearch FAQ

How to add a Search Form Manually?

Step 1. Go to Code Editor

Step 2. Click Add a new snippet inside the Snippets folder

Step 3. Set the file name as easysearch and click Done

How to add a Search Form Manually?

Step 4. An empty snippet will be created and opened in the editor. Copy and paste the following code into the snippet you just created:

{%- comment -%} DO NOT EDIT THIS SNIPPET - it's generated automatically {%- endcomment -%}{%- assign easysearchSettings = shop.metafields['easysearch'].settings -%}<div class="easysearch-widget"><div class="easysearch-container"> <div class="easysearch-header-holder"></div> <div class="easysearch-main-holder"> <div class="easysearch-logo-holder"></div> <div class="easysearch-holder easysearch-loading"></div> </div> <div class="easysearch-footer-holder"></div> <div class="easysearch-ancillary-holder easysearch-hidden"> <style class="easysearch-necessary-styles">.easysearch-hidden{display:none !important;}</style> <script type="text/javascript" class="easysearch-initialization">document.addEventListener('easysearch_init', function(){easysearch.iniDataByLiquid({shop:'{{ shop.permanent_domain }}',localeIso: '{{ request.locale.iso_code }}',allCollectionSize:{{ collections['all'].all_products_count }}{%- if easysearchSettings.value.settings -%},settings: {{ easysearchSettings.value.settings | json }}{%- endif -%}{%- if collection -%},currentCollectionSize:{{ collection.all_products_count }}{%- endif -%}{%- if product -%}{%- capture espc -%}{% for c in product.collections %}{{ c.handle }},{% endfor %}{%- endcapture -%},productTags:{{- product.tags | json -}},productCollections:{{- espc | split: ',' | json -}}{%- endif -%}});});</script>{% if easysearchSettings.value.script_src %}<script type="text/javascript" src="{%%20unless%20request.design_mode%20or%20canonical_url%20contains%20'shopifypreview.com'%20%}//{{%20shop.domain%20}}{%%20endunless%20%}{{%20easysearchSettings.value.script_src%20}}" data-no-instant></script>{% endif %}</div> </div></div>

Step 5. Click Save.