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

New Member
1 0 0


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