'LIQUID : Trying to NOT include the Variant Images from product thumbnail

'''
   {% for media in product.media %}
      {% unless media == featured_media %} 
                  {% unless media == variant.featured_media  %} 
                  blah blah
      {% endunless %}
      {% endunless %}
    {% endfor %}

'''

Hi. I'm just trying to NOT include the variant images from the thumbnail on my product page. do I have to assign "variant.featured_media" ?

 {%- assign variant.featured_media = variant.featured_media | default: variant.featured_media -%}

I did try to add this on the top of the code but it didn't work. could anyone please help to see why this is not working ? thank you so much enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source