Need help with variants

New Member
2 0 0

Hey, can you guys help me? So say I added a product that contains 6 colors, whenever I click let's say Black color, it will show the black color, but it will also show every color available underneath it, I want only Black color to appear when clicked, I am using Brooklyn theme, any help would be appreciatedScreenshot_1.png

Shopify Partner
255 48 53


{%- assign featured_alt = product.selected_or_first_available_variant.option1 -%}

{%- for image in product.images -%}
{%- if image.alt == featured_alt or image == featured_image -%}
// your code goes here
{%- endif -%}
{%- endfor -%}

Want to modify or custom changes on store hire me.
My Email:
If helpful then please Like and Accept Solution.
If you happy and want to donate small, click here: Paypal
1 Like
New Member
2 0 0

hey thanks for the help, just where do I paste the code? cheers


Hey @lexistore,


Is this something you would like to achieve in your store? Please check below link and let me know your thoughts.

Thanks & Regards
Perennial Solution

Would like to add new functionality or customize an existing one, please hire us.
If helpful then please Like and Accept Solution .
Skype: infoperennialsolution