In product page it displays the variant gallery images below description by default…How to remove that?
Hello @AllenAbhishek ,
Sounds like you want to display selected variant images at a time.
Actually it’s possible but need customization. If you are aware abut code then can take an idea from this post.
Thanks
No, I am saying the one which is displayed after the description..I feel
that it is unnecessary..
Edit product-template.liquid under ‘Sections’ and search for this code
{% comment %}
Insert images into rows of 3 and/or 2 depending on the total number of
images.
{% endcomment %}
{% assign totalModulus = totalImages | modulo:3 %}
{% if totalImages == 1 %}{% endif %}
{% for image in product.images %}
{% unless image.attached_to_variant? and section.settings.hide_variant_images %}
{% assign img_url = image | img_url: '1x1' | replace: '_1x1.', '_{width}x.' %}
{% endunless %}
{% endfor %}
{% if totalImages == 1 %}
{% endif %}
{% endif %}
Once found remove it and it will done.
Thanks