Customizing Image Swatches in Dynamic AJAX Product Filters

Filter Design & Styling
Updated Nov 8, 20262 min read

Image swatches show a small picture for each value. They work well for brand logos, patterns, materials or rooms, where a picture says more than a word. You can try them on our image filter demo.

Choose an image style

Go to Product Filters > Form Style and pick the filter you want to change under Configure Style for. Click the Image card, then pick a version.

Image

Each picture has a border that highlights the chosen one. This style is free.

WooCommerce image swatch filter with bordered pictures

Image Without Border

Pictures with no outline, for a lighter look. This style is free.

WooCommerce image swatch filter without borders

Image With Value PRO

Each picture has its name beneath it. This is clearest when pictures alone could be misread.

WooCommerce image swatch filter with names under the pictures

Set a picture for each value

  1. Scroll to Set Images for Terms. Tags have no such section, so the Image style does not suit them.
  2. Click the pencil button on a value and choose a picture from your media library. The bin button removes it.
  3. Click Save Changes.

For brands, you can skip this if the brand already has a logo in WooCommerce. The filter uses that logo unless you choose another picture.

Good pictures for swatches

  • Use square pictures of the same size, so the grid lines up.
  • Keep the files small, because swatches display small and large files slow the page.
  • Use a plain background for logos, ideally the same for all of them.
  • Choose a clear detail for patterns, not a whole product photo.

Our guide to the brand filter covers logos in more detail.

If something looks wrong

  • A picture does not appear: choose one under Set Images for Terms.
  • Pictures look stretched: upload square images.
  • Shoppers cannot tell what a picture means: use Image With Value, or the Enable/Disable Tooltip setting.