What are swatches?
Swatches are small, but very useful visual indicators that display the colors, patterns and materials in which a product is available to customers.
Instead of displaying the options as plain text, swatches provide a more intuitive and engaging way for customers to interact with the available choices. You can either use Shopify color category swatches, color hex codes, the variant images or upload your own custom swatch images to display on your product variants.
Some examples of color swatches in the Mode theme:
How to set up swatches
Steps
- Open the Theme Editor, and click on Theme Settings > Swatches.
- Choose Swatches to display to be None, Shopify or Theme.
- Within the Variant picker settings, set the Swatch variant picker style: Dropdown, Box with label, Icon -square or Icon - circle.
Shopify swatches
Shopify native swatches work using the color category metafield. When creating or editing a product it is possible to link a variant option to a color category metafield. Shopify have a color category metafield guide which explains how to set this up.
Set Swatches to display to be Shopify to choose this swatch method. These swatches can appear in variant pickers and can also be shown in product cards and filters. (Shopify swatches are supported in Mode theme versions after 5.1.0)
Theme swatches - variant images
Variant image swatches can be displayed on the product page, quick buy, featured product section and under the product images in the product grid.
Steps
- Open the Theme Editor, and click on Theme Settings > Swatches.
- Within the Swatch option name setting, enter the variant option title (e.g. Color).
- Within the Swatch method setting, select Variant image.
- Set the Swatch image crop alignment and choose whether to Enable swatch outline.
Note
Theme swatches - Color list method
Color list method swatches can be displayed on the product page, quick buy, featured product section and under the product images in the product grid. In addition, unlike the variant image swatches, they can also be used for filtering on the collection page or search page.
When using swatch colors, it's necessary to tell the theme what to show for each color by filling in the Swatch color list box. It's possible to use a mixture of hex codes and custom images with the color list method.
Steps
- Open the Theme Editor, and click on Theme Settings > Swatches.
- Within the Color option name setting, enter the variant option title (e.g. Color).
- Within the Swatch method setting, select Color list.
- Within the Swatch color list setting, enter the color followed by : (a colon) followed by either a hex color code or an image file name. Each color should be on a separate line.
- For plain swatches - Enter the hex color code which should start with a # (Example Red:#ff0000 Green:#008000 Blue:#0000ff).
- For striped swatches - Enter multiple color codes per line. (Example Red & White:#ff0000#fff).
- For custom image file swatches - Enter the color then the name of the file (Example Blue:blue.png) The image files should be uploaded in the Shopify admin in Content > Files.
- Set the Swatch image crop alignment and choose whether to Enable swatch outline.
How to display swatches in filters
The collection and search filters can display Shopify color category metafield swatches or swatches using the theme color list method.
Steps
- Open the Theme Editor, and click on Theme settings > Swatches.
- Within the Collection filter settings, check Enable swatches in collection filter. Choose one the three Swatch filter layout options.
Tip
How to display swatches in the product grid
In the Mode theme, Swatches can be shown on the product card under the product image.
Steps
- Open the Theme Editor, and click on Theme settings > Swatches.
- Within the Product cards settings, the Swatch position on product cards can be selected.
- Choose whether to Cross out unavailable options.
FAQs
Can I use Shopify swatches?
Versions of the Mode theme after 5.1.0 support Shopify swatches in product cards, filters and on the product page. More information can be found in the Shopify color category metafield guide.
Versions of the Mode theme after 4.1.0 support Shopify's visual filters using custom metafields and category metafields.
Will theme swatches work when the store language is changed?
Yes. Under swatch settings, you will want to add the translations of your variant title in other languages.
Steps
- Open the Theme Editor, and click on Theme Settings > Swatches.
- In the Swatch option name setting, add translations, separating each word with a comma and no spaces in between.
- Check your translation app. Please note, it is crucial to consistently check and auto-translate whenever modifications are made to ensure that swatches are displayed.
Can't find what you're looking for?
Our support staff are here to answer your queries, so don't hesitate to write to us!
Contact us