Setting up Filters on Collections through embedding HTML into Vintage themes

In this article, you’ll learn how to set up Filters on collections feature editing HTML code in Shopify Vintage themes.

Note

If you use an Online Store 2.0 theme, you should look for the appropriate instructions here.

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.

Setting up Filters on collections

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.

Step 1. Add the Searchanise snippet to your theme

  1. In the Shopify admin panel, go to Online store > Themes.
  2. Find the theme you want to edit, and then click “…” > Edit code.
  3. In Snippets, create a file named searchanise-navigation.liquid.
  4. Copy and paste the code from this file into the file.
  5. Save the changes.

Step 2. Update the collection template

  1. Open templates/collection.liquid. If it loads a separate section, such as collection-template.liquid, open that file in Sections.
  2. Find the code that renders the theme’s collection filters and product list. Replace that part with the snippet call below. Keep the markup for the collection title and description if you want to continue displaying them.
    {% render 'searchanise-navigation' %}

    For example, you have a collection-template.liquid section, which is included in your file. You can replace it with the Searchanise code:

    Pasting the code

    or go to that section, comment out the code for filters and the collection’s product list, and paste the Searchanise code to keep the collection title and description: 

    Replacing the Shopify code

    Tip

    To exclude a specific collection from Filters on collections, add liquid conditions to the template to 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]

  3. Save the file.
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 3. 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 25, 2026

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

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