Display only media related to chosen variant
Show only images matching the selected color variant in Avante by tagging image alt text with color names and enabling the filter in the Theme Editor.
Last updated
Was this helpful?
Show only images matching the selected color variant in Avante by tagging image alt text with color names and enabling the filter in the Theme Editor.
This feature filters the product gallery to show only images of the currently selected color variant. When a customer switches between colors, only the relevant photos are visible.

The feature uses image Alt text to group photos by color. When a customer selects a variant, the theme reads the color name from the Alt text and hides all images that don't match.
Simply assigning images to variants in Shopify Admin is not enough. You must add the correct Alt text to every image for filtering to work.
Go to Shopify Admin → Products → [your product]
Scroll to the Media section
Click on an image to open it
Click Edit → Add alt text
Add the color name in parentheses at the end of the alt text
Save
Repeat for every image in that color group

The color name inside the parentheses must match exactly across all images of the same color — including capitalization. (Black) and (black) are treated as different groups.
Make sure the first image of each color is assigned directly to its variant in Shopify Admin:
Go to Shopify Admin → Products → [your product] → Variants
Open a variant (e.g. Black / S)
Assign the main image for that color to this variant
Repeat for each color variant
The theme reads the Alt text from this assigned image to know which group to display when that variant is selected.

Open Theme Editor → Products → Default product template (or your custom product template)
Click on the Product overview section
Find Show only media of selected variant and enable it
Save


If you use Quick View, the setting must also be enabled in the Quick View template separately.
Check that:
Every image has Alt text with the color name in parentheses
The color name is spelled and capitalized consistently across all images of the same color
The variant has an image assigned to it in Variants (not just in the Media section)
If you see only one photo after enabling the feature, the other images likely have no Alt text or mismatched color names. The theme hides all images it cannot match to the selected variant.
Go back to Media and verify the Alt text on every image.
Check if that product uses a custom template. The Show only media of selected variant setting needs to be enabled separately in each template it's used on.
Go to Theme Editor → Products → [your custom template] → Product overview and enable the setting there.
Tip: Images without any Alt text (or without parentheses in the Alt text) will be visible for all color selections — useful for lifestyle or packaging shots that apply to the whole product.
Last updated
Was this helpful?
Was this helpful?
Format:
Any descriptive text (Color name)
Examples:
Front view (Black), Model wearing the dress (Ocean Blue), Detail shot (Ivory White)