Motion Theme: Only show images of selected color variant on the product page.

New Member
1 0 0


I'm using the Motion theme.  On my product page I have images for three different shirt colors (front and back, so 6 images total). 

I'm trying to edit my code so that only the front and back image of the selected color variant show in the image thumbnail slider, instead of all 6 images always showing.

I found the below solution for the Debut theme, but I haven't been able to figure out how to reword it for the Motion theme. 

Could anyone help me out?


Thank you,