How do I show only the images of the selected variant?
How to make the Volume product gallery show only the images that belong to the selected variant, using image alt text.
Volume can filter the gallery so a customer choosing Blue sees only the blue photos. It groups images by alt text, not by Shopify's variant image field alone, and that is why it looks broken the first time.
Assign one image to each variant in Shopify
In Products → your product → Variants, open each variant and attach an image to it. The filter only switches on when at least one image is assigned to a variant and the product has real variants — on a product with a single default variant it stays off no matter what you do in the theme editor.
Tag every image in its alt text, in round brackets
Open each image in Products → your product → Media → Edit alt text and add the tag in round brackets at the end:
Linen shirt, front (Blue)Linen shirt, detail (Blue)Linen shirt, front (Sand)
The brackets are required. The theme reads the last pair of brackets in the alt text, ignoring case, and treats that as the image's group.
Tag the variant's own image the same way
This is the step that is usually missed. The theme does not read the variant title — it reads the alt text of the image assigned to that variant, and shows every other image carrying the same bracketed tag. If the blue variant's image is untagged, or tagged (Navy) while the rest say (Blue), nothing lines up and the customer sees a single photo.
Because the comparison is alt text against alt text, the tag does not have to match the option name. (Blue), (blue) and (b-01) all work, as long as the variant's image and its siblings use the identical wording.
Was this helpful?
