Sibling product swatches
Product pages
Last updated
Product pages
Last updated
Update In Stiletto v3.0.0 (released Feb 2024), sibling product swatches can appear in the quick view popup and featured products section, as well as in product listings when hovered over. See our Changelog and theme update guide to learn more.
Sibling products allow you to set up variants as individual products with their own images and product details.
On product pages, variant swatches link to other sibling product pages. In collections and product listings, sibling products are displayed as individual products.
After setting up sibling products, you can choose display either product images or custom colors for the swatches.
See our Stiletto demo for an example of sibling product swatches.
To set up sibling products you will need to add individual products to a new collection, then add and update two metafields for each sibling product.
Create products with unique images and details
Add products to a collection to group together as 'siblings'
Create two metafields to show siblings as swatches and add option names to products
To create a group of sibling products, you need to add individual products and add them to a new collection. The collection is used to group your sibling products together as variant options.
Once your sibling products are added to a collection, you need to add two metafields to your products.
Sibling products use metafields to (a) display sibling products as swatches and (b) give each product a variant option name.
Metafields are custom fields added to your products in the Shopify admin. The steps below will cover all you need to know, but if you'd like to learn more, see Shopify's guide to metafields ↗.
Go to Settings > Custom data to create the first metafield for your Products. This metafield will be used to display sibling products as swatches.
The metafield requires the following fields:
Name
Siblings collection
Namespace and key
stiletto.siblings_collection
Must be exact to work. Note that 'siblings' is plural with an 's'. Do not add or modify words.
Type
Collection (Reference)
If you are creating multiple sibling collections, you only need to create one metafield.
Go to Settings > Custom data to create the second metafield for your Products. This metafield will be used to give individual products a variant option name (e.g. "Red" or "Wood").
The metafield requires the following fields:
Name
Sibling option name
Namespace and key
stiletto.sibling_option_name
Must be exact to work. Note that 'sibling' is singular with no 's'. Do not add or modify words.
Type
Single line text
After creating the 2 metafields, go to Products in your Shopify admin to add content to the metafields.
Select the related sibling collection
Enter an option name for the sibling product
That's it! the sibling product swatches will now automatically display on the product pages.
By default, the label above the sibling swatches is "Color". Go to Theme settings > Products to change the Siblings label.
Custom styles are also available for the size and shape of swatches, which apply to all swatches in the theme.
Sibling products swatches can display product images or custom colors.
By default, sibling swatches display as colors. To use custom swatch colors, you can assign a hex code to your product option in Theme settings > Product.
You can use a HTML color picker like this one to find the hexcode for your color. Select and copy the six-character hex code, including the hashtag symbol.
Siblings can use product images as swatches. Go to Theme settings > Products. Under Sibling swatches, change the Swatch source to Product image.
To show images as swatches on Product listings, go to Theme settings > Product listings.
In your Shopify admin, go to Products to upload and select images for your individual sibling products. Click and drag the product image you want to the first position in the product media gallery.
By default, sibling swatches appear on product listings found in collection pages and theme sections. When hovered over, sibling products will display the image or color swatch.
To disable sibling swatches on product listings, go to Theme settings > Product listing and toggle off Show sibling swatches.
When enabled, sibling swatches will also appear in the Quick view popup and Featured product section. Selecting a sibling swatch in the Featured product section will update the product media and details. Selecting a sibling swatch in the Quick view will redirect to the sibling product page.
By default, all published collections appear on the Collections list page and in Search results. Follow the steps below to hide sibling collections on your store.
To hide a sibling collection from the Collections list page, you can choose to show only selected collections, instead of all collections.
While Shopify doesn't provide an option to hide collections, you can use metafields as a workaround to remove specific collections from search results.
Related links