How to display different images for each Shopify variant?

How to display different images for each Shopify variant?

Last updated:

Shopify lets you assign one image to each product variant, but displaying multiple images for every variant requires an additional solution.

You have five main options:

  • Group images in the product gallery: Arrange images by variant and use the assigned variant images as markers to identify each group.

  • Use alt text tags: Add variant tags to image alt text and use compatible theme code to filter the gallery.

  • Use variant metafields: Store a list of images for each variant, then customise your theme with Liquid and JavaScript to display them.

  • Use a Shopify app: Manage multiple images, videos, and 3D models for each variant without custom coding.

  • Use Shopify Combined Listings: Create separate products for each colour or style and connect them so customers can switch between their product galleries.

Who Is This Guide For?

This guide is for Shopify store owners and developers who want to show the right product media when customers select a variant.

It's useful if you want to:

  • Show different images for each product colour or variant.

  • Display multiple images, videos, or 3D models for each variant.

  • Show only the media related to the selected variant.

  • Hide images and videos belonging to other variants.

  • Group separate Shopify products, such as different colours, into one listing using Shopify Combined Listings.

  • Customise your Shopify product gallery without using an app.

  • Find an app that makes managing variant-specific product media easier.

How Shopify Variant Images and Product Media Work

Shopify allows you to add different types of media to a product, including images, videos, and 3D models. These appear in the product media gallery on your storefront.

However, Shopify handles product media and variant media differently.

You can assign one image to each product variant, but you can't directly assign multiple images, videos, or 3D models to a single variant using Shopify's standard variant settings.

For example, if you sell a T-shirt in three colours, you can assign a representative image to each colour:

  • Red: Red T-shirt front image.

  • Blue: Blue T-shirt front image.

  • Black: Black T-shirt front image.

When customers select a colour, Shopify can display its assigned image as the variant preview.

You can also upload additional images, videos, and 3D models to the product's media gallery. However, Shopify doesn't automatically group or filter all these media items based on the selected variant.

This means customers might still need to browse through the entire gallery to find media related to their selected colour.

To display a separate collection of images, videos, or 3D models for each variant, you'll need an alternative approach, such as Shopify Combined Listings, theme customization, custom code, or a third-party app.

To display variant-specific product media, you have several options:

  • Group images for each variant in the product gallery and assign the first image to that variant.

  • Use image alt text or filename conventions supported by your theme to identify which images belong to each variant.

  • Enable your theme's media filtering settings to hide images belonging to other variants.

  • Use a Shopify app to manage multiple images per variant.

  • Build a custom solution using variant metafields, Liquid, and JavaScript to filter the product gallery.

  • Create separate products for each colour or style and connect them using Shopify Combined Listings.

We'll explore these methods throughout this guide to help you choose the right approach for your store.

How to Assign an Image to Each Shopify Variant

If you only need to display one image for each variant, you can do this directly from Shopify Admin without installing an app or editing your theme.

For example, if you sell a T-shirt in three colours, you can assign a different image to each color variant.

Follow these steps:

  1. From Shopify Admin, go to Products.

  2. Open the product you want to edit.

  3. Scroll down to the Variants section.

  4. Click the image icon next to the variant you want to update.

  5. Select an existing product image or upload a new one.

  6. Click Done, then Save.

Repeat these steps for each variant.

Once saved, Shopify uses the assigned image as the variant preview when customers select that variant on your storefront.

Note: Shopify's standard variant settings let you assign only one image per variant. You can only assign image files here, not videos or 3D models.

Add images to existing variants individually in shopify

How to Add Multiple Images to Each Shopify Variant

Although Shopify doesn't let you assign multiple images directly to a single variant, there are different methods you can apply to achieve this. Let's explore each approach.

Method 1 - Group Variant Images in the Product Gallery

First, upload all product images to the product's media gallery in Shopify Admin.

Next, following the steps in the previous section, assign one image to each colour variant. This assigned image must also be the first image in that colour's group in the product gallery.

Arrange the images in this order:

  • Red: Red variant image, followed by the remaining red product images.

  • Blue: Blue variant image, followed by the remaining blue product images.

  • Black: Black variant image, followed by the remaining black product images.

The assigned variant image acts as the starting point for each group. The next assigned variant image marks where the previous group ends and the next one begins.

When a customer selects a colour, your theme can use these assigned images as markers to identify and display the corresponding group of images.

Limitations of This Approach

Grouping images in the product gallery can work well for products with a few colour variants. However, this approach has some limitations:

  • Difficult to manage many variants: As you add more colours, you need to keep every image group in the correct order. Maintaining these groups can become time-consuming, especially when you regularly add or update product images.

  • Doesn't work well with multiple variant options: If your product has options such as style and colour, the number of combinations can quickly grow. For example, each style might be available in several colours. You would need to organise images for each combination, making the gallery harder to manage.

  • Shared images and videos are difficult to handle: Some media, such as a size guide or lifestyle photo, may be relevant to all variants. However, this grouping method relies on keeping each variant's images together. You cannot simply place the same media item in multiple groups without duplicating it or disrupting the group order.

Group shopify Variant Images in the Product Gallery

Method 2 - Use Image Alt Text to Identify Variant Images

Another way to organise multiple images for each variant is to tag them using the image alt text field.

For example, if your product has three colour variants, you can use:

  • Red: #red

  • Blue: #blue

  • Black: #black

Add the matching tag to every image that belongs to that colour. For example, all images of the red T-shirt should have the #red tag in their alt text field.

A compatible theme or custom code can read these tags and filter the product gallery based on the selected variant. When a customer selects Red, for example, the gallery displays images tagged with #red.

Limitations of This Approach

This method has several limitations to consider:

  • Can affect accessibility and SEO: Alt text is intended to describe images to screen readers and search engines. Replacing descriptive alt text with variant tags means losing that useful information.

  • Difficult to handle shared images: If an image is relevant to multiple colours, you can't easily assign it to more than one group using a single variant tag. For example, a lifestyle image that shows all three colours cannot be tagged separately for Red, Blue, and Black.

  • May not work with videos and 3D models: Videos and 3D models use preview images in the product gallery. Depending on how your theme handles alt text filtering, the tags may not correctly filter these media types.

  • Time-consuming to manage many variants: You need to tag every image manually. If your product has multiple options, such as style and colour, the number of variant combinations and media items can grow quickly. A missing or incorrect tag can cause the gallery to display the wrong images.

Theme support is also required. Shopify doesn't automatically filter product media using alt text tags. Check your theme's documentation to see whether it supports this tagging method and which tag format it expects.

Use Image Alt Text to Identify Shopify Variant Images

Method 3 - Use Variant Metafields to Store Multiple Images

Another way to display multiple images for each variant is to use Shopify variant metafields.

Instead of relying on image order or alt text tags, you can create a custom metafield for each variant and use it to store a list of images belonging to that variant.

For example, if you sell a T-shirt in three colours, you can assign the corresponding images to each variant:

  • Red: Front, back, and detail images of the red T-shirt.

  • Blue: Front, back, and detail images of the blue T-shirt.

  • Black: Front, back, and detail images of the black T-shirt.

To set this up:

  1. From Shopify Admin, go to Settings → Metafields and metaobjects → Variants.

  2. Click Add definition.

  3. Name the metafield Variant Gallery.

  4. Set the type to File → List of files.

  5. Save the metafield definition.

    create Variant Metafield in shopify
  6. Go to your product, open each variant, and add its corresponding images to the Variant Gallery metafield.

    add images and videos to shopify variant metafield

Limitations of This Approach

Variant metafields give you more control over which media belongs to each variant, but there are a few things to consider:

  • Requires custom theme development: Creating the metafield doesn't automatically filter the product gallery. You need Liquid and JavaScript to retrieve the selected variant's media and update the gallery.

  • Manual media management: You need to add the correct files to each variant's metafield. If you have many variants and media items, maintaining these lists can become time-consuming.

  • More complex variant combinations: Products with options such as style and colour can have many combinations. You'll need to manage a separate media list for each relevant variant, which increases the amount of setup.

  • Theme compatibility: Your custom gallery code needs to handle the media types you want to display. Images, videos, and 3D models may require different rendering logic.

This approach is more flexible than image grouping or alt text tagging, but it requires development work and ongoing maintenance.

Method 4 - Use a Shopify App to Manage Multiple Images per Variant

If you want the easiest way to display multiple images for each Shopify variant, using an app is a practical option. Instead of manually organising product images, adding alt text tags, or building a custom solution with metafields, you can manage everything directly from the app.

Nova Variant Images is designed to make this process easier, especially for stores with many variants and complex product combinations.

With Nova, you can:

  • Automatically assign images with AI: Let AI help assign product media to the correct variants, saving time when managing large product galleries.

  • Bulk assign media to variant combinations: If your product has multiple options, such as colour and size, assigning media to every combination individually can be time-consuming. Nova lets you bulk assign media to combinations. For example, you can assign an image to both Black and Small so it appears for the Black × Small combination.

  • Reorder product media: Arrange images in your preferred order to create a better presentation for customers.

  • Support different media types: Assign images, videos, and 3D models to your product variants.

  • Display variant galleries across your store: Show the relevant variant media on product pages, collection pages, quick views, and the homepage.

  • Use variant image swatches: Display image-based swatches to help customers identify and select product variants.

  • Display variants as separate products: Show different colours or other variants as individual products in your collection.

    Display shopify variants as separate products

Works with Your Existing Theme

Nova supports more than 350 Shopify themes and works with page builders. If you're using a custom theme that isn't currently supported, you can request theme support. The team can add support within an hour.

You don't need to edit theme code or build a custom gallery from scratch. You can manage variant media directly through the app.

Pricing - Nova offers four plans:

Plan

Price

Product limit

Free

$0

1 product

Standard

$9.99/month

45 products

Pro

$19.99/month

110 products

Premium

$49.99/month

1,000 products

Enterprise

$69.99/month

Unlimited products

Annual billing is also available, with savings on paid plans.

You can install Nova Variant Images from the Shopify App Store and start managing your variant galleries without writing code.

Method 5 - Use Shopify Combined Listings to Create Separate Product Galleries

Shopify Combined Listings lets you connect separate products and display them together as one product listing on your storefront.

This is useful when each colour or style needs its own product gallery, rather than sharing one gallery across all variants.

For example, imagine you sell a T-shirt in three colours: red, blue, and black.

Instead of creating one product with three colour variants, you would create three separate products:

  • T-shirt - Red: Contains the red T-shirt images.

  • T-shirt - Blue: Contains the blue T-shirt images.

  • T-shirt - Black: Contains the black T-shirt images.

Each product has its own images, product details, inventory, and URL. You then connect these products using Shopify's Combined Listings app.

Customers can select a colour using the available swatches. When they select Blue, they're taken to the Blue T-shirt product, where they can view its own product images, select its available sizes, and add it to their cart. Selecting Red or Black switches to the corresponding product and gallery.

Limitations of This Approach

Shopify Combined Listings app is only available to stores on Shopify Plus and eligible enterprise plans.

If you're on another Shopify plan, you can use Nova Combined Listings Swatch, a better alternative to Shopify's native Combined Listings app. It offers similar functionality while working with any Shopify plan, so you don't need to upgrade your subscription.

You can install Nova Combined Listings Swatch from the Shopify App Store to connect separate products and display them together using colour or image swatches.


FAQ

Can you assign multiple images to one Shopify variant?

Not directly through Shopify's standard variant settings. Shopify lets you assign one image to each variant. To display multiple images for a variant, you can use theme customisation, variant metafields, or a Shopify app.

How do I show different images when a customer selects a variant?

You can use a compatible theme feature, custom Liquid and JavaScript, or a Shopify app to filter the product gallery based on the selected variant. This ensures customers see images relevant to their chosen option.

Can I display different videos and 3D models for each Shopify variant?

Yes, but Shopify's standard variant settings don't let you assign videos or 3D models directly to variants. You'll need a custom solution or an app that supports assigning different media types to variants.

Can I hide images that don't belong to the selected variant?

Yes. A compatible theme customisation or Shopify app can filter the product gallery to show only media associated with the selected variant.

How can I display multiple images for Shopify variants without coding?

You can use a Shopify app such as Nova Variant Images. It lets you assign multiple images, videos, and 3D models to variants and display the relevant media without editing your theme code.

Does Shopify Combined Listings work on all Shopify plans?

No. Shopify's native Combined Listings app is available only to Shopify Plus and eligible enterprise stores. If you're on another plan, you can use an alternative such as Nova Combined Listings Swatch, which works with any Shopify plan.

I take care of your Shopify store, so you can focus on your business and your customers can enjoy a better experience.
HEY JAK |
Copyright 2026 |
I take care of your Shopify store, so you can focus on your business and your customers can enjoy a better experience.
HEY JAK |
Copyright 2026 |