Setting up Filters on collections in Online Store 2.0 themes

This article explains how to add Searchanise filters to collection pages in Shopify Online Store 2.0 themes (Dawn, next-generation themes).

There are two setup methods:

  1. Customize your theme – the recommended method.
  2. Edit your theme code – use this method only if the Searchanise section cannot be added through the theme editor.
Note

If you use a Vintage theme, you should look for the appropriate instructions here.

Before you begin

Before setting up the feature:

  • make sure the Searchanise app is enabled in your theme and product indexing is complete;
  • create a backup copy of your theme before changing its settings or code.
Note

Searchanise Search & Filter is gradually rolling out a new control panel to Shopify stores. During the rollout, some Shopify stores may still use the previous version. If switching is available for your store, you can try the new control panel and return to the previous version at any time. Learn how to identify your control panel version.

Customizing Online Store 2.0 themes

This is the recommended method for Online Store 2.0 themes. It does not require manual code changes.

Step 1. Enable the feature in Searchanise

Previous admin

  1. Go to Filters > Filters on collections > Settings.
  2. Select the Navigation through embedding HTML into the Shopify template option.

    Setting up Filters on collections in Online Store 2.0 themes

  3. Apply the changes.

New admin

  1. Go to Filters > Filters on collections > Settings.
  2. Turn on Filters on collections.
  3. Select Via theme/code editor.

    Setting up Filters on collections in Online Store 2.0 themes

  4. Click Save.

Step 2. Add the Searchanise Filters on collection section

    1. In Shopify admin, go to Online Store > Themes.
    2. Find the theme you want to configure and click Customize.
    3. Use the template selector to open a collection template.
    4. Hide or remove the theme’s default product grid section to prevent two product lists from appearing on the page.
      Setting up Filters on collections in Online Store 2.0 themes
    5. Click Add section.
    6. Under Apps, select the Searchanise Filters on collections section.

      Setting up Filters on collections in Online Store 2.0 themes

      Setting up Filters on collections in Online Store 2.0 themes

    7. Place the section where the collection product grid should appear.
    8. Click Save.

    App sections and blocks can be added, removed, previewed, and repositioned through the Shopify theme editor.

    If your store uses multiple collection templates, repeat these steps for each template where Searchanise filters should appear.

    If you face any trouble setting up the feature, you can contact us. We will be glad to help you.

    Editing Online Store 2.0 theme code

    Use this method only if the Searchanise section is unavailable or incompatible with your theme.

    Editing theme code requires knowledge of Liquid, HTML, CSS, and your theme’s structure.

    Step 1. Create the Searchanise snippet

    1. In Shopify admin, go to Online Store > Themes.
    2. Find the theme you want to edit, and click Actions (…) > Edit code.
    3. In the Snippets directory, click Add a new snippet.
    4. Name the snippet searchanise-navigation.
    5. Copy the Searchanise code from this file and paste it into the snippet.
    6. Click Save.

    The resulting file should be named:

    snippets/searchanise-navigation.liquid
    Important info

    If the content of collection pages loads slowly after installing Filters on collections, we recommend accelerating the loading of the app’s scripts using this guide.

    If you face any trouble setting up the feature, you can contact us. We will be glad to help you.

    Step 2. Find the collection product-grid section

      Important info

      We recommend backing up the files before changing them. If you disable the Navigating through embedding HTML code into the Shopify template option or delete the app, you’ll have to insert the code you removed back.

      1. In the Templates directory of the Code Editor, click collection.json.
      2. Find the collection’s section name that shows products in the type attribute:
        1. For most of the themes, it is main-collection:

          Code Editor

        2. For themes by Shopify, it is product-grid:

          Code Editor

      3. Open the file with the found name in the Sections directory. In the examples above, it is main-collection.liquid, or main-collection-product-grid.liquid, but your theme may have another file name.

      Step 3. Replace the product grid

      1. In the collection section file, find the Liquid and HTML markup that renders the filters and product grid.
      2. Preserve the {% schema %} block and the theme settings it defines.
      3. Replace the original product-grid markup with: {% render ‘searchanise-navigation’ %} For example, comment out all the code except the schema code and paste the Searchanise code: 

        Pasting the code

        Tip

        To exclude a specific collection from Filters on collections, add liquid conditions to the template that will regulate when the inserted code should be implemented. See an example:

        {% if collection.handle == '[collection_handle1]' 
        or collection.handle == '[collection_handle2]' %} 
            //keep here the default collection template code 
        {% else %} 
            {% render 'searchanise-navigation' %} 
        {% endif %}

        Paste your collection handles instead of [collection_handle1], [collection_handle2]

      1. Save the file.

      Do not remove the original code permanently unless you have a backup. You will need it if you disable Searchanise or return to the Shopify product grid.

        Step 4. Enable the feature in Searchanise

        Previous admin

        1. Go to Filters > Filters on collections > Settings.
        2. Select Navigation through embedding HTML into the Shopify template.
        3. Apply the changes.

        New admin

        1. Go to Filters > Filters on collections > Settings.
        2. Turn on Filters on collections.
        3. Select Via theme/code editor.
        4. Click Save.
          Updated on November 24, 2026

          How useful was this post?

          Click on a star to rate it!

          Average rating 2.3 / 5. Vote count: 6

          No votes so far! Be the first to rate this post.

          We are sorry that this post was not useful for you

          Let us improve this post!

          Please tell us how we can improve this post

          Related Articles