Display only images that match the variant color in Debut

New Member
1 0 0

Hey guys,

I am currently setting up my Shopify store using the Debut theme. I have products with different variants (varying color and size). There are six product images which vary by color (and not by size).

On the product page, I would like to display only the images of the selected color. Unfortunately, Shopify automatically lists all images belonging to the product irrespective of the chosen color. However, this looks very unprofessional. 

I know this has been asked before. But the code on Debut seems to have changed and any solution I've found so far is not yielding the required result. 

I would be very thankful for a code to adjust the current Debut theme to make this work.

Thanks a lot for any comments.