-
AuthorPosts
-
July 27, 2022 at 5:00 am #1359512
Hi
If you click this link, for example :…. you can see that the image on the product page ilooks nice and sharp…but if you click on the image to “open” it, it looks blurry
(it’s like that with all my images)
I can’t work out why this would be.
The image is 2048 x 1280, 72dpi and is nice and sharp when you open it in the WordPress media gallery
https://madaboutmara.com/wp-content/uploads/2022/07/Low-res-72dpi-2288.jpg
How can I get it sharp in Woocommerce ?
Thanks
Ivan
July 27, 2022 at 7:41 am #1359518Hey ivanglaser,
Thank you for the inquiry.
Are you using any kind of image optimization or compression plugin? It seems to be resizing the lightbox thumbnail based on a specific URL parameter or query. (see private field)
Try to add this code in the functions.php file to adjust the default lightbox thumbnail size.
add_filter('avf_avia_builder_helper_lightbox_size', function($size) { return 'full'; }, 10, 1);
Best regards,
IsmaelJuly 27, 2022 at 2:33 pm #1359556Hi
I added this code some weeks ago (I think I found it on this Enfold support site) because in my masonry gallery the images were not displaying properly on large screens.
That issue is fixed now with this code :/* Lightbox image size */
add_filter( ‘avf_avia_builder_masonry_lightbox_img_size’, ‘enfold_customization_change_popup_size’ );
function enfold_customization_change_popup_size( $size ) {
return ‘fullsize’;
}Is your suggested code similar ? can I rtun both these bits of code ?
Tx
Ivan
July 27, 2022 at 2:42 pm #1359558FYI, I added your auggested code and that has fixed my problem. Thank you !
It does not seem to have broken the other code as my masonry gallery still worksSo I assume it’s OK to leave them both in the functions.php file….right ?
Thanks again
IvanJuly 27, 2022 at 4:32 pm #1359569Hi,
Thanks for the update. If everything works as expected, then please leave the code as it is. If you should have any further problems on the topic, then please let us know here.
Best regards,
RikardJuly 28, 2022 at 12:08 am #1359623Thank you
July 28, 2022 at 10:40 am #1359652 -
AuthorPosts
- You must be logged in to reply to this topic.