I was wondering if anyone could help me change the size of the thumbnails in product pages. I would really like them to be in a square format. I know it is possible to do it through coding but I wasn’t able to find it for days.
Well that code would only affect your featured image. You’d have to track down in your code exactly where the thumbnail images are output and apply the filter to the correct liquid output. Probably would look something like:
{% for image in product.images %}
{% unless forloop.index0 == 0 %}
{% endunless %}
{% endfor %}
I have no idea if that’s what your code looks like, but you’ll be looking for the image loop in product-template.liquid most likely
I’m in product-template.liquid and the only code I could find that contain src is:
If I remember properly, I modified that code but it didn’t change anything (I think because it is related to featured media as you said..) I don’t know If I am allowed to but here is the code I have for the thumbnail in product-template.liquid