In this article, you’ll learn how to set up Filters on collections feature editing HTML code in Shopify Vintage themes.
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
- In the Shopify admin panel, go to Online store > Themes.
- Find the theme you want to edit, and then click “…” > Edit code.
- In Snippets, create a file named
searchanise-navigation.liquid. - Copy and paste the code from this file into the file.
- Save the changes.
Step 2. Update the collection template
- Open
templates/collection.liquid. If it loads a separate section, such ascollection-template.liquid, open that file in Sections. - 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:
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:
TipTo 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]
- Save the file.
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
- Go to Filters > Filters on collections > Settings.
- Select Navigation through embedding HTML into the Shopify template.
- Apply the changes.
New admin
- Go to Filters > Filters on collections > Settings.
- Turn on Filters on collections.
- Select Via theme/code editor.
- Click Save.

