How to get 'image.attached_to_variant?' to work on the media object.

Highlighted
New Member
1 0 0

Hi, 

I'm trying to hide the variant images from the product thumbnails below the main image. Normally I would use 'image.attached_to_variant?' to check and hide them, but because the newer themes are using the media object. instead of image, to support new types of medias, this doesn't work according to Shopify documentation. Does anyone know how to achieve the same result with the media object? 

Screen Shot 2020-09-16 at 9.34.41 AM.png

 

0 Likes