-
AuthorPosts
-
May 10, 2017 at 1:55 am #790747
I keep getting blurry product images on the single product image. The other woocommerce images are fine, just just having problems with this one. I’ve tried resizing the images through woocommerce’s setting (and regenerated thumbnails) as well as tried a variety of high and lower res images. Please see image below for an example (the blurry image is originally 1432×774). I’m out of ideas, please help.
Best regards,
MarcMay 10, 2017 at 3:43 am #790778Hey mmentuccia,
Try adding this code at the bottom of functions.php:
global $woocommerce; if( version_compare( $woocommerce->version, '3.0.0', ">=" ) ) { add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) { return $img; } function avia_woocommerce_post_thumbnail_description($img, $post_id){ return $img; } }
Let us know if this helps :)
Best regards,
NikkoMay 10, 2017 at 1:52 pm #791071That seems to have helped the image quality, but now there’s a zoom in effect when you put your mouse cursor over it (and a magnifying glass bar at the top of the image. How can I remove the zoom in effect and magnifying bar? Please see link provided.
Thank you,
MarcMay 10, 2017 at 2:26 pm #791101Hi,Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file:
.single-product .woocommerce-product-gallery__image > a + img { display: none!important; }
Best regards,
YigitMay 10, 2017 at 3:24 pm #791149It doesn’t zoom in when you scroll over now but the microscope bar is still there and the image can be clicked to be made larger (I do not want the images to be enlarged at all).
Best regards,
MarcMay 10, 2017 at 4:22 pm #791183Hi Marc,
Try to remove this line of code from the code I gave earlier:
add_theme_support( 'wc-product-gallery-zoom' );
Hope this helps :)
Best regards,
NikkoMay 10, 2017 at 5:09 pm #791218Hello Nikko,
I removed
add_theme_support( ‘wc-product-gallery-zoom’ );
add_theme_support( ‘wc-product-gallery-lightbox’ );and that appears to have helped. Although the quality isn’t as good as it could be. For example, if I right click and press “inspect” on the image, the image quality automatically improves. Does this have something to do with the width of the image screen display? If so, how can this be improved?
Best regards,
MarcMay 10, 2017 at 6:25 pm #791259Hi,
Can you try to go to Woocommerce > Settings > Products (tab) > Display (tab) > Product Images, and set Single Product Image to 450×999 and uncheck hard crop. Then try to re-upload the image. Hope this helps :)
Best regards,
NikkoMay 10, 2017 at 8:51 pm #791334I think that did the trick, thanks so much Nikko! You can consider this issue closed.
Best regards,
Marc- This reply was modified 7 years, 6 months ago by mmentuccia.
May 11, 2017 at 3:06 am #791418Hi,
Glad we could help! Thanks for using Enfold :)
Best regards,
Nikko -
AuthorPosts
- The topic ‘Blurry woocommerce single product images’ is closed to new replies.