Answer the question
In order to leave comments, you need to log in
Why fuzzy images in Woocommerce store?
Help me understand why and how to fix a bug with product images
https://amico-hc.com/shop/
Some product images look fuzzy when viewed from a phone or tablet (everything is ok on a desktop).
All images are the same size. And I can’t understand the logic why some are OK, while others are blurry. Tried loading different extensions, etc. The problem is not solved in any way.
Answer the question
In order to leave comments, you need to log in
It seems to me that the problem is in the adaptive tag and how woocommerce distributes which image to which device to give.
If we are talking only about thumbnails in the product cycle, then the easiest way is to overwrite their output:
function woocommerce_template_loop_product_thumbnail(){
$product_img = get_the_post_thumbnail_url();
echo '
<div class="product-image" style="background-image:url(' . $product_img . ');"></div>
';
}
Added code, but now all images are gone:
joxi.ru/MAjZJBNUvMpo1A
Hello!
1) check the Wocomerc version and update if necessary
2) update your theme's Wocomerc templates
3) check your theme's Wocomerc templates and see what thumbnails are being returned.
4) regenerate thumbnails by setting regenerate thumbnails maybe you just changed the theme and forgot to regenerate thumbnails.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question