Customizing Color Swatches in Dynamic AJAX Product Filters

Filter Design & Styling
Updated Nov 8, 20262 min read

Colour swatches let shoppers click the colour itself instead of reading its name. They are most useful for clothing, shoes, paint and home goods. You can try them on our colour filter demo.

Choose a colour style

Go to Product Filters > Form Style and pick the filter you want to change under Configure Style for. For a colour attribute, also choose it in the second list. Click the Color card, then pick a version. Categories, Brands and Tags have no Color card; it suits attributes and other values.

Color

Square colour blocks with a border, so pale colours stay visible. This style is free.

WooCommerce color swatch filter with bordered squares

Color Without Border

Clean squares with no outline. This style is free. White or very pale colours can fade into the background.

WooCommerce color swatch filter without borders

Color Circle PRO

Round swatches, which look softer and suit fashion shops.

WooCommerce color swatch filter with round swatches

Color With Value PRO

A swatch beside its name. This is clearest for similar colours, such as navy and dark blue, and helps shoppers who have trouble telling colours apart.

WooCommerce color swatch filter with the colour name beside each swatch

Color Swatch Label PRO

A small swatch inside a labelled button, which is easy to tap on a phone.

WooCommerce color swatch filter with labelled buttons

Set the colour for each value

Scroll to Advanced Options for Terms. Under Set Colors for Terms, click a swatch and choose its colour. Do this once for each value, and match what shoppers will see on the product.

Set Colors for Terms settings with a swatch for each colour

The swatch editor offers three kinds of fill:

  • Single colour: for plain colours such as red.
  • Gradient PRO: blends colours, for values such as “Sunset” or “Rainbow”.
  • Image PRO: uses a small picture, for patterns such as stripes or denim.

Click Save Changes when you finish. Your choice applies only to the filter you selected, so each filter can have its own style.

Tips

  • Keep colour names consistent in WooCommerce, so “Grey” and “Gray” do not become two swatches.
  • For white or cream products, use the bordered Color style, so pale swatches stay visible.
  • If names matter to your shoppers, use Color With Value.

If something looks wrong

  • A swatch is blank or grey: set its colour under Set Colors for Terms.
  • A new colour is missing: add it to a product, then click Clear Cache under Advance Settings.