Hi Shopify Community ![]()
I’m using the Shopify Horizon (free) theme and I have a product (example: T-shirt) with color variants such as Black, Blue, and Green.
Each color variant has its own set of images uploaded in the product media section.
Expected behavior:
-
When a customer selects Blue, only Blue variant images should be displayed
-
When Green is selected, Blue and Black images should be hidden
-
Same behavior for all color variants
Current issue:
-
All product images are visible regardless of the selected variant
-
The image gallery does not filter images based on the selected variant option
My questions:
-
Does the Horizon theme support variant-specific image filtering by default?
-
Is there a recommended way to assign images to variants so Horizon recognizes them correctly?
-
Does this require:
-
Modifying product media alt text (e.g.,
color-blue) -
Custom JavaScript to listen to variant change events
-
Editing
main-product.liquidor related section files?
-
-
Is there a theme-safe solution that won’t break during Horizon updates?
If anyone has implemented this successfully in the Horizon theme, sample code or guidance would be greatly appreciated.
Thanks in advance! ![]()
