Skip to main content

Option & Color Filters for Collection Pages

The Option Filter and Color Filter allow customers to refine the products displayed on your Shopify collection pages. With these tools, shoppers can narrow results based on product attributes such as category, size, and color, creating a faster and more personalized shopping experience.

This guide explains how to set up filters in Shopify, and then add, configure, and style them in Instant.

Overview

Collection filters give your customers the ability to find products quickly by filtering based on attributes like size, color, material, and category. These filters connect directly to your Shopify store's filter configuration.

Available Filter Types

Filter Type

Description

Option Filter

Filters by product options like size, material, or model

Color Filter

Displays color swatches for visual color-based filtering

Category Filter

Filters by product category or type

Part 1: Setting Up Filters in Shopify

Before adding filters in Instant, you must configure them in Shopify using the Search & Discovery app.

Step 1: Install the Search & Discovery App

  1. Go to your Shopify Admin

  2. Navigate to Apps

  3. Click Shopify App Store

  4. Search for Search & Discovery

  5. Click Add app and then Install

The app is free and developed by Shopify.

Step 2: Access the Filters Section

  1. Open the Search & Discovery app from your Shopify Admin

  2. Click on Filters in the left sidebar

  3. You'll see a list of any existing filters

Step 3: Add a New Filter

  1. Click the Add filter button

  2. Choose a filter source from the available options:

Source

Description

Availability

Filter by in-stock or out-of-stock status

Price

Filter by price range

Product Type

Filter by product type

Vendor

Filter by product vendor/brand

Tags

Filter by product tags

Product Options

Filter by options like size, color, material

Category

Filter by product category

Metafields

Filter by custom metafield values

  1. Configure the filter label (the name customers will see)

  2. Click Save

Step 4: Arrange Your Filters

  1. In the Filters section, drag and drop filters to reorder them

  2. The order here determines the display order on your collection pages

  3. Click Save when finished

Setting Up Color Filters with Metafields

For color swatches to work properly, additional setup is required:

Create Color Metafields

  1. Go to Settings → Custom data in your Shopify Admin

  2. Click Products

  3. Click Add definition

  4. Create a metafield for color with the following settings:

    • Name: Color (or your preferred label)

    • Type: Color

  5. Click Save

Assign Colors to Products

  1. Open a product in your Shopify Admin

  2. Scroll down to the Metafields section

  3. Find the color metafield and add the color value

  4. Save the product

  5. Repeat for all products that need color filtering

Add Color as a Filter

  1. Open the Search & Discovery app

  2. Go to Filters

  3. Click Add filter

  4. Select Metafields as the source

  5. Choose your color metafield

  6. Save the filter

Part 2: Adding Filters in Instant

Once your filters are configured in Shopify, you can add them to your collection templates in Instant.

Prerequisites Checklist

Requirement

Status

Search & Discovery app installed

Required

Filters configured in the app

Required

Color metafields set up (for Color Filter)

Required for color swatches

Collection template created in Instant

Required

Creating a Collection Template

  1. Open or create a Collection Template in Instant

  2. This template determines how products will be displayed on a specific collection

Adding Filter Elements

Step 1: Open the Insert Panel

In the left sidebar, open the Insert Panel.

Step 2: Find Collection Filter Elements

Hover over the Collection category to display available elements.

Step 3: Add a Filter

Drag and drop one of the following onto the canvas:

Element

Use Case

Option Filter

Size, material, model, and other attribute filtering

Color Filter

Visual color swatch filtering

Configuring Filters in Instant

Once the filter is placed on the canvas:

  1. Select the filter element

  2. In the right sidebar, locate the Collection Filter settings

  3. Choose a filter from the dropdown list

The dropdown displays filters previously created in the Search & Discovery app.

Available Filter Options

Filter Type

Examples

Category Filter

Product type, collection category

Option Filters

Size, material, model, style

Color Filter

Product colors (requires metafield setup)

Once selected, the filter automatically populates and displays available options based on your product data.

Styling Filters

Each filter type can be customized to match your design aesthetic.

Stylable States

State

Description

Default (Unselected)

How the filter option appears normally

Active (Selected)

How the filter option appears when selected by the customer

Customize colors, borders, typography, and other style properties for both states to create clear visual feedback for your customers.

Limitations and Considerations

Limitation

Details

Large collections

Collections with more than 5,000 products don't display filters

Filter values

A filter can display a maximum of 100 values on your store

Total filters

You can add up to 25 filters in total

Filter groups

Maximum of 1,000 filter groups across all selected filter settings

Troubleshooting

Filters Not Appearing in Instant

Issue

Solution

No filters in dropdown

Configure filters in the Search & Discovery app first

Color swatches not showing

Verify color metafields are set up and assigned to products

Filter values missing

Ensure products have the relevant attributes assigned

Filters Not Working on Storefront

Issue

Solution

Filters not visible

Check that your theme supports filtering

Values not updating

Re-save products and give Shopify time to re-index


Quick Reference

Task

Action

Install Search & Discovery

Shopify Admin → Apps → App Store → Search & Discovery

Add filter in Shopify

Search & Discovery → Filters → Add filter

Create color metafield

Settings → Custom data → Products → Add definition

Add filter in Instant

Insert Panel → Collection → Option Filter or Color Filter

Configure filter

Select filter → Right sidebar → Collection Filter → Choose from dropdown

Style default state

Select filter → Style tab → Customize appearance

Style active state

Select filter → Interactions → Active state

Complete Setup Checklist

Step

Location

Status

1. Install Search & Discovery app

Shopify Admin → Apps

2. Configure filters

Search & Discovery → Filters

3. Set up color metafields (if needed)

Shopify → Settings → Custom data

4. Assign metafields to products

Shopify → Products

5. Add color metafield as filter

Search & Discovery → Filters

6. Create collection template

Instant → Layouts

7. Add filter elements

Instant → Insert Panel → Collection

8. Configure and style filters

Instant → Right sidebar

Did this answer your question?