If your filters include colors and you want those colors to be displayed as swatches instead of just labels and checkboxes, you need to go to the Theme Settings and open the Color swatches tab. In the Configuration input field, you need to type in the color hex code for each existing color filter (Hex codes are a 6 digits number, as per the screen shot below). There are plenty of online tool (such as this page) for you to find color hex codes you can copy and paste. The important thing to remember for this to work is to avoid typos and to follow the right syntax in the Theme Editor. For example:
Please note that the theme relies on a variant that is specifically the one from the Shopify options that is called Color. Because of that, it can't support multiple color swatch groups (for example: eyeglasses for which customers can choose a lens color and a frame color). This ensures that the swatches displayed in filters and product cards are accurate and consistent across the board. I your products are composed of different components that each come in multiple colors, you would have to choose 1 dominant color for leveraging the swatches, and then the other color options would be displayed either as buttons, or options in a dropdown menu.
Replacing color swatches with images
It can be useful to replace a color swatch by an image instead. This feature allows you to showcase patterns and textures instead of plain colors. Follow these steps:
1- Create a small image and give it a name (ex: blue-stripes.jpg)
2- Go to the Shopify admin, go to the Content tab (left side of the screen), and open the Files tab
3- Upload your image
4- Now open the Theme Editor and go to the Theme Settings. Open the Color swatches tab. In the Configuration input field, you need to type in the exact name of the filter, add a colon, and add the name of your image (without spaces). Make sure to include the image file extension. For example:
* Attention *
For color swatches to appear in product cards, each variant must be associated to a product image.
* Attention *
If your store is translated in multiple languages, make sure you don't translate the content where your color swatches are named and associated to a hex code. For example, if you're using the Translate and Adapt app provided by Shopify, you might translate this content by mistake if you hit the "Auto-translate" button. This would create a conflict and your color swatches won't be outputted properly. You can easily fix this by going to the General tab under Theme assets and remove the translation in the General: Color Swatch Configuration field: