Siblings & grouped variants
Use siblings to link separate product listings, or option media to have many images for each colorway.
Shopify assumes that each variant will have exactly one variant image.
You are reading this article because that's not how your product photography works.
Most products that come in both "Color" and "Size" will have mutliple photos of each "Color", and no photos that are specific to "Size".
Shopify Model
Green
Small
Photo of "Green" in "Small"
Green
Large
Photo of "Green" in "Large"
Purple
Small
Photo of "Purple" in "Small"
Purple
Large
Photo of "Purple" in "Large"
Your Reality
Green
Small
8 photos of "Green", no photos that are specific to size
Green
Large
8 photos of "Green", no photos that are specific to size
Purple
Small
6 photos of "Purple", no photos that are specific to size
Purple
Large
6 photos of "Purple", no photos that are specific to size
Shopify did release an app to help merchants manage this problem, Combined Listings, but it is only available to Plus merchants. Combined Listings solves this problem by creating a "wrapper product" that contains all of the various color options.
We offer two other alternatives that are available to all merchants on all plans.
Siblings (Color linked products)
Each color is a different product
The product images are the color images
Option media (Color linked galleries)
Color is a product options
Images for each color are stored in a metaobject
Both options use metaobjects to accomplish this goal.
Siblings (Color linked products) link separate products as swatches. Each colorway keeps its own URL, images, inventory, and SEO. Selecting a sibling replaces the current product without reloading the page.
Option media (Color linked galleries) stays on one product and changes the gallery for the selected option.
Functionally they accomplish the same goal in two different ways, if you want a bunch of different photos for each color you can use either method. If you choose to use combined listings, the only major difference is the wrapper product that the app creates.

Choose siblings or option media
If you want each colorway to have its own page, and you want to manage colors as separate products, use siblings.
If you want everything in one product, and don't mind managing your images inside a metaobject, use Option media.
If you are on Plus and like the idea of wrapper products, use Combined listings. The decision between Siblings and Combined listings for Plus merchants is usually above our paygrade. Typically something about attribution models or ERP integrations. Both Siblings and Combined listings work equally well in all our themes so the decision has no theme constraints.
It's rarely needed, but Siblings and Option media can be use together on one product. Siblings handle cross-product navigation and option media handles the gallery for a secondary option. It's not a reccomended path but it is possible for true edge-case products that need both. We currently don't support two separate options for Option media on one product, but we're exploring it for a future release. If you have that need, reach out in support.
Set up siblings
Create a metaobject for sibling groups and a product metafield that points to it. Each metaobject entry holds one group of products. Assign the same entry to every product in the group.
Analog needs two keys: the product metafield key and the product-list field inside the metaobject. The screenshots mark them ① and ②.
Create a metaobject
Open Settings → Custom data → Metaobjects and create a definition. Add a field with the type Product and turn on List. Set the field key to products. The definition name can be anything.

products field name is global setting ②. The other fields are optional.You can add other fields for content shared by the group, such as a name, banner, or images. Analog only uses products for the swatches.
Add entries
Add one entry for each sibling group. In products, include every product in the group, including the current product. Analog uses the current product as the selected swatch.
Set the entry status to Active. A draft entry returns no products.
After step 4, use the entry's "References" list to check that every product points back to it.
Create a product metafield
Open Settings → Custom data → Products and create a definition. Set its namespace and key to theme.siblings. Choose the type Metaobject, then select the definition from step 1. Analog reads the namespace and key; the definition's display name can be anything.

theme.siblings is global setting ①.Enter the two global settings
In the theme editor, open Theme settings → Metafields → Sibling products.

① "Product siblings"
theme.siblings
The namespace and key from step 3
② "Metaobject: sibling product list"
products
The field name from step 1
Enter theme.siblings in "Product siblings". "Metaobject: sibling product list" defaults to products; change it only if you used a different field key.
Where a swatch gets its color and name
Each swatch draws from the product's category "Color" metafield (shopify.color-pattern): the color's swatch and its label. Without a category color, the swatch falls back to the product's featured image and title. To override either, turn on "Customize swatch and label" and name a "Custom swatch image" and "Custom color name" metafield per product.
Change the block's label and list (optional)
The block uses the "Color" translation as its heading and the global sibling group as its product list.
To add another sibling row, add another "Linked products" block. Turn on "Set custom sibling list" and select the products for that row. Turn on "Set custom label" to name it, for example "Material" or "Season". These overrides only affect that block; product cards continue to use the global sibling group.

Use the metaobject in the rest of the template
Analog reserves the products field for the sibling list. Other fields remain available as dynamic sources under closest product → theme.siblings → your field. Use them for content shared by the whole group:
A group name, such as "Zelda Swimsuit"
A heading that reads "Zelda Swimsuit in every color" on all products in the group
A banner image
An image tile or a Pair section that changes with the group
Numbered image fields, such as img_1 and img_2
A marquee or gallery shared by the group
Connect the block setting to the dynamic source. A value entered directly is stored on the template and appears on every product that uses it.
Set up option media
Add a list of media metaobjects to the product. Each entry pairs a color swatch reference with a file list containing images, videos, or both. Analog uses the first entry whose swatch label matches a selected option value and replaces the product media with that file list. Keep labels unique since the first match wins.
When option media or siblings are active, the gallery re-renders after each change. "Scroll to variant image" is disabled because the gallery is replaced instead of scrolled.
Recipes
Custom swatch images
Use the override metafields when the category "Color" swatch is not enough:
Theme settings › Metafields › Customize swatch and label: on
Metafields › Custom swatch image:
theme.sibling_imageMetafields › Custom color name:
theme.sibling_label
Shop-the-look swatch strip
Use the block's custom list to cross-link related products without any metafields:
Product page › Linked products block › Set custom sibling list: on
Linked products › Siblings: the related products
Linked products › Set custom label: on, e.g. "Complete the look"
Gallery per print on one product
Use option media so a second option reshuffles the photos inside each colorway:
One metaobject entry per print, pairing a color swatch with its media list
Theme settings › Metafields › Option media metaobject:
theme.product_option_media
Technical details
A sibling swatch preloads its product markup on hover or focus. On click, Analog replaces the product section and updates the URL without reloading the page. The sibling URL includes the current option selection, so a selected size can stay selected on the new product.
The in-place update requires matching product structures. Otherwise, the swatch works as a normal link:
Option positions and names must match. The carry-over walks the two products' options by array position and name. If "Red Tee" has Size then Fit and "Blue Tee" has Fit then Size, the selection cannot be copied. Keep option order identical across a sibling set.
The template suffix must match. A sibling on a different product template cannot be fetched with the correct layout, so the swatch opens the sibling product page.
Related and recently viewed sections update as they scroll into view after a sibling change. This only happens on the product page. A sibling change inside quickview or Featured product stays inside that product view. See product surfaces.
Product card swaps
Product cards use the same server-owned idea at card scope. A swatch fetches a complete card for the selected sibling or variant and morphs it into the existing card frame without changing the page URL. That response can include the selected product's complete slideshow, price, badges, destinations, and actions instead of asking JavaScript to patch each field separately.
Cards preload likely responses and their first images so the server-rendered swap does not add a visible delay. On mobile, the one or two cards crossing the center of the viewport preload because there is no hover opportunity. See Product card architecture for the rendering, preloading, and image-transition contracts.
See also
Metafields reference: sibling and option media data contracts
Product page & quickview: where sibling updates apply
Badges, ratings & preorder: variant badges with sibling swatches
Product card architecture: how card selections render and preload
Last updated
Was this helpful?

