> For the complete documentation index, see [llms.txt](https://help.ecombe.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.ecombe.com/editor-and-functions/editor-features/how-to-setup-product-images-with-alt.md).

# How to setup Product images with alt

This guide explains what **Product Images with Alt** is, how it works, and how to set it up correctly in Shopify.

## Overview

**Product Images with Alt** allows product images to change dynamically based on the selected variant.

When a customer selects a variant (for example, **Black**), only images that belong to that variant will be displayed. This helps customers view the correct product version without confusion.

## How It Works

The feature uses **image alt text** to determine which images should be shown.

* When a variant is selected
* The system looks for product images whose **alt text matches the variant name**
* Only matching images are displayed
* All other images are hidden

## Example

* Selected variant: **Black**
* Displayed images: Images with alt text **“Black”**
* Hidden images: Images with other alt values (e.g. “White”, “Red”)

## Before You Start

Make sure that:

* Your product has **variants** (such as Color, Style, or Finish)
* Each variant has its own set of images
* You use **exactly the same wording** for variant names and alt text (case-sensitive)

{% stepper %}
{% step %}

#### Open the Product in Shopify Admin

1. Go to **Shopify Admin**
2. Click **Products**
3. Select the product you want to apply **Product Images with Alt**

<figure><img src="https://2549070089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ch1rVRFTw7xu44bUNyO%2Fuploads%2FK70vh58B1veHAttR8g4d%2FScreenshot%202025-12-19%20at%2015.49.41.png?alt=media&amp;token=26bcc75a-3d37-43eb-a160-afdf27a1e439" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Add Alt Text to Product Images

You must assign the **variant name** as the alt text for each corresponding product image.

**Example**

If the variant name is **“Natural Oak”**, all images of that variant must have:

```
Alt text: Natural Oak
```

**How to add alt text:**

1. Click on a product image.
2. In the image details panel, find the **Alt text** field under **Information** then **enter the variant name.**
3. Click **Save.**

Repeat this process for **all variant images**.

<figure><img src="https://2549070089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ch1rVRFTw7xu44bUNyO%2Fuploads%2FzPe7pBcgvxpa004fMWgN%2FScreenshot%202025-12-19%20at%2015.53.47.png?alt=media&amp;token=8145991e-fcfd-4813-a19b-2b5501920138" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2549070089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ch1rVRFTw7xu44bUNyO%2Fuploads%2F8X0UFzkgIQUKk2RfdWkQ%2FScreenshot%202025-12-19%20at%2015.56.31.png?alt=media&amp;token=890838ca-b063-4beb-810b-b56c55216fe1" alt=""><figcaption></figcaption></figure>

{% endstep %}

{% step %}

#### Enable “Media by Alt”

1. Go to your **Template** and Open the **Featured Product** section.
2. Enable the **Media by Alt** option then **save** the changes.

<figure><img src="https://2549070089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ch1rVRFTw7xu44bUNyO%2Fuploads%2FBAXHjvOHPAPYOLBlTDgs%2FScreenshot%202025-12-19%20at%2016.04.28.png?alt=media&amp;token=8fb7f6cf-f3c0-4fa5-90dd-73aec8f2e854" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2549070089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ch1rVRFTw7xu44bUNyO%2Fuploads%2FBGc52LHIUaRW23dXPuy9%2FScreenshot%202025-12-19%20at%2016.07.28.png?alt=media&amp;token=14970893-8e6f-4aae-bcd6-7a44bc0f52dc" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### Result

Once enabled:

* Selecting a variant will no longer slide to a single image
* Instead, **all images matching the selected variant’s alt text will be displayed**
* Customers see only relevant images for the chosen variant

<figure><img src="https://2549070089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ch1rVRFTw7xu44bUNyO%2Fuploads%2FiPpl4pABxvRISdfrutEu%2FScreenshot%202025-12-19%20at%2016.10.30.png?alt=media&amp;token=5f890ba7-6bcc-40b6-b5a1-aad4f7193159" alt=""><figcaption></figcaption></figure>

### Best Practices

* Use **exact variant names** for alt text (no extra words)
* Avoid mixing formats (e.g. use “Black”, not “Black color”)
* Make sure every variant has at least one image with matching alt text
* If no images match the alt text, no images will be filtered

### Common Issues

**Images do not change when selecting a variant**

* Check if alt text exactly matches the variant name
* Ensure “Media by Alt” is enabled in the section

**Only one image appears**

* Make sure all images for that variant use the same alt text

{% hint style="info" %}
Have a question? Contact us via **in-app live chat,** we'll reply in few minutes.
{% endhint %}
