Main issue: On a Shopify product page, selecting a color variant changes the main image but does not filter the thumbnail/gallery images; other colors remain visible. The goal is to show only images for the selected color (e.g., only black images when “Black” is chosen).
Efforts/assumptions: The original poster believes this can be done with conditional logic (e.g., an if statement) and has added alt text to images to assist, but doesn’t know where to place the code. Screenshots were referenced as central to illustrating the problem.
Responses: One reply states this requires more advanced customization and suggests hiring a developer. Another user reports the same issue and asks if it was resolved. A later reply shares a YouTube tutorial (“Display selected color images”) that appears to demonstrate the desired behavior.
Status: No confirmed fix or implementation steps within the thread. The discussion remains open with a potential solution link but no verified outcome.
Summarized with AI on December 16.
AI used: gpt-5.
I am having issues with my website. I want the variant pictures to be specific. for example when the colour black is chosen for it to only show the black shirt and then when the red variant is chosen to only show the red shirt. i have tried to find a solution online but am struggling. please help.
as shown i the screenshots below. when the black colour is chosen the main picture chnages to black. however, the grey and white are still visible.
then for screenshot 2 when white colour is chosen the white is the main picture however black and grey are still visible
I have seen people add this themselves so don’t think I need a developer.
The requirement is that when I select black, I only want to see the black tops and when I select ‘white’ I only want to see the white. Right now the main image changes but the below images you can still see the other colours which I dont want. From my googling skills it looks like a what if statement is needed to show and hide the right colours. Would be good to get your thoughts whenever you have a spare minute.
I have added alt tex I just don’t know where to put this code.