Hello,
I want to hide specific product variant images in my product page, i use Ella Theme.
A user working with the Ella Theme wants to hide specific variant images from their product page.
A solution was proposed involving:
product-template.liquid file in the code editorHowever, the original poster reported that after implementing the suggested code, the images still appear on the page. They included a screenshot showing the issue persists.
The discussion remains unresolved, with the proposed CSS/Liquid code solution not working as intended.
Hello,
I want to hide specific product variant images in my product page, i use Ella Theme.
In the code editor, locate the file responsible for rendering the product page. This file is typically named product-template.liquid
To hide specific variant images, youâll need to add a conditional statement to exclude those images. Modify the code as follows:
{% for image in product.images %}
{% unless image.alt contains 'VariantToExclude' %}
{% endunless %}
{% endfor %}
I added the code but the photo still appears
