If you’re looking to add attribute swatches to your shop filters in WooCommerce, then you can do so with WooCommerce Attribute Swatches.
By doing this, you’ll replace the standard WooCommerce filter options with the visual swatches you’ve created with WooCommerce Attribute Swatches.
Note: This doesn’t just apply to color and image swatches. With WooCommerce Attribute Swatches, you can update the attribute filters to include text and radio buttons too.
To add your swatches to the product filters in WooCommerce, take the following steps:
- From your WordPress dashboard, go to Products > Attributes.
- Hover the attribute you’d like to enable swatches for in the filters and click Edit.
- Scroll down to Show Swatch in Filters? and change the dropdown to Yes.
- Then scroll down to the bottom of the page and click the blue Update button.
Your product filters will now show your upgraded attribute swatches.