Focus visitors’ attention on images of the selected product color within the gallery on Product pages.
The solution lies in linking the variant image with other images of the same color in the Media library. We'll connect them through the Alt text of the images.
(Black)
, and save it.(Black)
after its alt text.Repeat this process with all images in Media, and enable ‘Show only media of selected variant’ checkbox in the Product overview section of the Product template.
After saving, you'll see the following before/after: