> For the complete documentation index, see [llms.txt](https://docs.globo.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.globo.io/product-variant-swatch/display-on-product-page/show-only-images-related-to-the-selected-variant.md).

# Show only images related to the selected variant

When a variant group is selected, all images that do not belong to that group will be hidden, ensuring that customers only see images relevant to the selected variant.

<figure><img src="/files/ItsNmUJI1riGDkQbZzF3" alt=""><figcaption><p>Group image by color green</p></figcaption></figure>

<figure><img src="/files/FhDhiFNQBq0Q6wDRnuyc" alt=""><figcaption><p>Group image by color pink</p></figcaption></figure>

There are two ways to show only the images related to the selected variant:

**Option 1:** Use Shopify variant images by grouping product images.

**Option 2:** Assign images directly in the GLO Color Swatch app. This method gives you more flexibility and doesn't require rearranging your Shopify product images.

Choose the option that best fits your workflow.

| Method                 | Best for                                                                  |
| ---------------------- | ------------------------------------------------------------------------- |
| Shopify Variant Images | You already manage variant images in Shopify.                             |
| Assign Images in Globo | You want to control image groups without changing Shopify product images. |

Choose the method that best fits your store.

## Method 1 - Arrange existing **Shopify Variant Images**

Before you begin, make sure:

* Each color or model has its own set of product images.
* Images are uploaded to the Shopify product.

{% stepper %}
{% step %} <mark style="color:blue;">Group image thumbnails by color</mark>

In the Shopify Products admin, arrange your product images so that images belonging to the same variant are placed together.

Example:

White 1 → White 2 → White 3

Pink 1 → Pink 2 → Pink 3

Black 1 → Black 2 → Black 3

<figure><img src="/files/bFnAO0hnoxALc6AswRpH" alt=""><figcaption><p>Group image thumbnails</p></figcaption></figure>

<figure><img src="/files/1XsyaPUcRihBt66XP9eH" alt=""><figcaption><p>Group image thumbnails</p></figcaption></figure>
{% endstep %}

{% step %} <mark style="color:blue;">Sort variants and group by color</mark>

* Once the image group is complete, scroll down to the variation options
* Reorder variants, **variant option displayed as image or color must be placed on top**

<figure><img src="/files/aQycMIVuOrkIKooB9UAV" alt=""><figcaption><p>Sort variants and group by color</p></figcaption></figure>
{% endstep %}

{% step %} <mark style="color:blue;">Select image for main variant</mark>&#x20;

<mark style="color:red;">**The image assigned as the variant's main image in Shopify must be the first image in its image group.**</mark>

<figure><img src="/files/EXsi1lpkbL61Qld4HmOx" alt=""><figcaption><p>Select image for main variant</p></figcaption></figure>

<figure><img src="/files/M01ZZqIpSdoe9yujxLFH" alt=""><figcaption><p>Select image for main variant</p></figcaption></figure>

<mark style="color:red;">**Make sure all primary image variations in a group are the first image of a group.**</mark>

<figure><img src="/files/XkcCxiy5dKJJvfMrBEMo" alt=""><figcaption><p>Select image for main variant</p></figcaption></figure>
{% endstep %}

{% step %} <mark style="color:blue;">Sync data in the GLO Color Swatch app</mark>

If you've recently updated product images or variants in Shopify, click **Update Data** to synchronize the latest changes with the app.

<figure><img src="/files/w8tLCsXIpzy87HIlsZjX" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %} <mark style="color:blue;">Set Color/Image display style for variant</mark>

To use this feature, your variant option must be displayed as a **Color Swatch** or **Image Swatch**. Variant types such as **Dropdown** and **Button** do not support image grouping.

{% hint style="info" %}
List of styles that support group image function:&#x20;

✅ Swatch

✅ Pill swatch

✅ Automated swatch

✅ Image swatch with price

✅ Custom swatch with price

✅ Swatch dropdown

✅ Image dropdown

❌ Button (all style button)

❌ Button with price (basic)

❌ Dropdown  (basic)
{% endhint %}

<figure><img src="/files/x0Xy3ohBqSQV2X2JaxyZ" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %} <mark style="color:blue;">Enable the Group image function</mark>

* Navigate to the **Settings** section
* Check on the **Group image** checkbox
* **Select a Shopify theme** that you're using on your store.
* Click **Save** to finish.

<figure><img src="/files/YCGvV40a04f6Jan61Q1O" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %} <mark style="color:blue;">Video guide</mark>

{% embed url="<https://www.youtube.com/watch?v=P5HZbJIKGJ4>" %}
Video guide
{% endembed %}
{% endstep %}
{% endstepper %}

## Method 2 - Assign Images in the GLO Color Swatch App (New)

If you need more control over which images are displayed for each variant, you can assign images directly in the Globo app instead of relying on Shopify's variant images.

### Steps to assign images

1. Open the product in **GLO Color Swatch**.
2. Go to **Assign Images**.
3. Select a product.<br>

   <figure><img src="/files/Ip2aKKfc9gK17vjMz3Ef" alt=""><figcaption></figcaption></figure>
4. Choose the images that should be displayed for a specific variant.<br>

   <figure><img src="/files/3geFZMvgHG8qR2I14hby" alt=""><figcaption></figcaption></figure>
5. Save your changes.
6. Set color/image display style for variant<br>

   <figure><img src="/files/xaqLGQkLZ47c6xUBbPSR" alt=""><figcaption></figcaption></figure>
7. Enable the **Group image** function.<br>

   <figure><img src="/files/44zQWrT8Jin7TbPlQDcS" alt=""><figcaption></figcaption></figure>

👉 *Watch the video tutorial:*&#x20;

{% embed url="<https://www.youtube.com/watch?v=0ryx-rw2IH0>" %}

### Assign a general image to multiple variants

If you have an image that should be displayed for **every variant** (such as a size chart, product packaging, a lifestyle photo, or a brand image), you only need to upload it once.

Any image left in the **Shared across all variants** section will be displayed regardless of which variant the customer selects.

#### **How to set up**

1. Go to the **Assign Images** section.
2. Open the product you want to adjust.
3. Leave the general image in the **Shared across all variants** section. **Do not assign it to any specific variant.**
4. Click **Save**

<figure><img src="/files/HBx9GlJPz2zPJwPR4ugp" alt=""><figcaption></figcaption></figure>

#### How It Works

When a customer selects a different variant:

* Variant-specific images will change based on the selected variant.
* Images in the **Shared across all variants** section will remain visible for every variant.

This is useful for images that are not tied to a specific variant, such as:

* Size charts
* Product packaging
* Lifestyle photos
* Brand or promotional images
* Care instructions

> **Tip:** You can combine shared images with variant-specific images. Each variant will display its own assigned images together with any images in the **Shared across all variants** section.

***

## Troubleshooting

<mark style="color:blue;">1. Check your Theme Customize settings:</mark>

Some themes include a built-in feature called **"Hide other variants’ media after selecting a variant."**

If you're using the app's **Group Images** feature, please go to **Online Store → Themes → Customize** and disable this theme setting.

The theme's media filtering feature may conflict with the app's Group Images functionality, which can prevent images from displaying correctly.

<figure><img src="/files/sZzPcz4esdL5lzwymxP1" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">2. Still not working?</mark>

Please check:

* ✅ App Embed is enabled.
* ✅ Product data has been synced.
* ✅ The variant is displayed as a supported swatch type.
* ✅ Images are grouped correctly.
* ✅ Your theme's "Hide other variants' media" setting is disabled.

Some newer theme versions may not support this feature yet. If you've followed the setup instructions and it's still not working, please contact our support team for assistance.

For further help, reach out to us at <contact@globo.io>.
