Installation Ready-made View

Warning: AddSearch offers a native Shopify app that can be installed and managed through Shopify admin. We strongly recommend to use the application instead of manual installation described in this article.

AddSearch is an instant search for websites that displays results immediately, from the first keystroke. The easiest way to implement AddSearch on a Shopify site is to use Addsearch’s Basic Installation method and insert the AddSearch script in a Custom Code element on each page where you want to include the search engine.

If you’d like to employ more advanced features like price ranges, filtering, or add-to-cart buttons, our Search UI library does all of this and more. Take a look at our Search UI library documentation here.

Contact us if you need any help using AddSearch with Shopify or if you’d like to discuss a custom design using our Search UI library.


First, find your Site key by following these instructions:

  1. Login to your AddSearch Account
  2. Go to Keys and installation under Setup
  3. Copy your site key under Your Site Key

Use our Search Designer tool to configure the widget according to your needs and copy the installation script. Then paste the script into your website template to the place where you want the AddSearch field to appear. Here is an example of how the script snippet might look like:

 window.addsearch_settings = {
  "asw_01": {
    "show_search_suggestions": false,
    "search_suggestion_position": "left",
    "default_sortby": "relevance",
    "display_date": false,
    "display_meta_description": false,
    "display_result_image": true,
    "link_target": "_self",
    "hide_logo": false,
    "direction": "ltr",
    "analytics_enabled": false,
    "automatic_filter_results_by_site_language": false
<script src=""></script>

To install AddSearch to Shopify page, follow these instructions:

  1. Log in to your Shopify account
  2. Click Online Store

picture of shopify dashboard themes selector.

  1. From the Actions drop-down menu click Edit code

picture of shopify theme drop-down menu with a link to code editor.

Before installing AddSearch you need to remove the default search from the theme. The search is usually located in the header of the page where the Logo, Menu and Cart are.

picture of shopify default search.

  1. To edit the header in the Code editor, search for header and open header.liquid under Sections

picture of shopify code editor search functionality.

  1. In the header.liquid file locate the code related to the search element

installing addsearch on shopify

  1. Replace the default search code with the AddSearch script provided by the Search designer tool.

installing addsearch on shopify website

  1. Save changes to the header.liquid file and preview the search

picture of previewing addsearch on a shopify page.

Was this helpful?

Need more help?

We’re always happy to help with code or other questions you might have. Search our documentation, contact support, or connect with our sales team.