> For the complete documentation index, see [llms.txt](https://help.byinspiredlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.byinspiredlabs.com/others/faqs/how-do-i-show-different-images-for-each-variant.md).

# How do I show different images for each variant?

Show only the selected variant's images in the product gallery.

Poetic can show only the images that belong to the selected variant. For example, when a customer picks "Blue", the gallery shows only the blue photos. You set this up with a variant metafield and one setting in the theme editor.

### 1. Create the variant metafield

1. In your Shopify admin, go to **Settings > Custom data > Variants**.
2. Click **Add definition**.
3. Give it a name, such as "Variant images". Set the namespace and key to `custom.variant_images`.
4. For the type, choose **File**, select **List of files**, and limit it to images.
5. Click **Save**.

### 2. Assign images to each variant

1. Open the product and upload all its images to the product's **Media** first.
2. Open each variant, find the **Variant images** metafield and select that variant's images.
3. Use the same images for every variant of a color (for example, all sizes of "Blue").

### 3. Turn it on in the theme editor

Open a product template, click the **Product information** section and find **Variant image groups**:

* **Group media by variant:** Turn on to show only the selected variant's images.
* **Variant metafield:** Leave it as `custom.variant_images`, or enter the namespace and key you used.
* **Show unassigned media:** Images that aren't assigned to any variant show for every variant.
* **If a variant has no group:** What to show for variants with no images assigned. Options: Show all media or Show only shared media.

{% hint style="info" %}
**Note:** Images must also be in the product's media to show. If a variant has images that aren't, the theme editor shows a notice above the gallery. Grouping works in the product page gallery and zoom; Quick add and the Featured product section show all images.
{% endhint %}

See [Product information](https://help.byinspiredlabs.com/product-page/product-information.md) for the other gallery settings.
