-
AuthorPosts
-
October 15, 2018 at 12:20 pm #1021535
I have a problem with the quality of the photo gallery in the store, the pictures are blurred.
October 15, 2018 at 8:34 pm #1021770Hey creativeopole,
Here are some threads to consider:
https://kriesi.at/support/topic/blurry-product-image-in-woocommerce-and-bigger-button/
If you need further assistance please let us know.
Best regards,
VictoriaOctober 16, 2018 at 8:09 am #1022018The problem concerns only gallery thumbnails in the store. I do not see the solution. In the attachment I present where the problem is. The question is how to change it to the size of the original photo.
October 16, 2018 at 6:47 pm #1022319Hi creativeopole,
Can you disable caching and minification for now?
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaOctober 16, 2018 at 7:44 pm #1022356I have disabled caching and minification for now. However, it did not help.
October 17, 2018 at 6:01 am #1022569Hi,
Thanks for that. Could you please clear the cache from and disable your caching plugin? The problem might be because of caching. When to not use a caching plugin
Also, please consider updating to Enfold 4.5: https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update. Please note that you might have to delete the old version before you upload the new one in order for it to install properly.
Best regards,
RikardOctober 17, 2018 at 11:45 am #1022696Thanks for that. Could you please clear the cache from and disable your caching plugin? The problem might be because of caching. When to not use a caching plugin
The problem does not arise from the cache plugin. I found a problem and sent it in the picture below.
- This reply was modified 6 years, 2 months ago by creativeopole.
October 19, 2018 at 1:54 am #1023713Hi,
Thank you for the update.
The gallery is set to the smallest thumbnail by default, which is 100x100px. You can use this filter to adjust that size.
add_filter('woocommerce_get_image_size_thumbnail', 'woocommerce_get_image_size_thumbnail_mod', 10, 2); function woocommerce_get_image_size_thumbnail_mod($size) { $size['width'] = 300; $size['height'] = 450; $size['crop'] = 0; return $size; }
// https://themebynumbers.com/2018/04/18/how-to-override-woocommerce-image-sizes/
Best regards,
IsmaelOctober 19, 2018 at 7:22 am #1023775I’ve pasted your code in function.php into the child theme. Unfortunately, it still did not help.
October 22, 2018 at 1:51 am #1024640Hi,
Thanks for the update. Install the “Simple Image Sizes” plugin instead then go to the Settings > Media panel. Adjust the size of the “shop_thumbnail”, update, save and then regenerate the images.
// https://wordpress.org/plugins/simple-image-sizes/
Best regards,
IsmaelOctober 22, 2018 at 7:42 am #1024721This solution also did not help. Despite the change in the size and regeneration of the thumbnails did not help.
October 23, 2018 at 11:27 am #1025345Hi,
The “shop_thumbnail” size is still set to 100x100px when I check the Settings > Media panel. You have to adjust it before the regenerating the images.
Best regards,
IsmaelOctober 23, 2018 at 1:08 pm #1025384None of the solutions work. The problem is in the gallery code. The parameter as in the picture is set all the time. After changing to 180. The images are getting quality and the regulation is displayed.
October 24, 2018 at 2:08 am #1025710Hi,
Do you have a site backup or a restore point? I would like to try to regenerate the thumbnails to increase the size of these thumbnails. (see private field)
Best regards,
IsmaelOctober 24, 2018 at 11:16 am #1025852I have a backup. You can try to fix the problem with thumbnails.
October 25, 2018 at 12:35 pm #1026320Hi,
I would like to add the filter above after regenerating the thumbnails but I can’t modify the functions.php file in the Appearance > Editor panel. Please post the FTP details in the private field.
Best regards,
IsmaelOctober 25, 2018 at 2:36 pm #1026359I am sending FTP. Please enter the change in the template child theme.
October 29, 2018 at 5:23 am #1027373Hi,
Sorry for the late response. I had to disable the srcset attribute and set the Enfold > Shop Options > Product gallery to the default WooCommerce gallery to adjust the thumbnails. The gallery is using the “portfolio” thumbnail now.
Best regards,
IsmaelOctober 29, 2018 at 7:58 am #1027391Hi,
I am not interested in the WooCommerce gallery.
On the page we want to have the default gallery Enfold set. Which does not work properly and the thumbnails lose their quality.
I even found where the problem is and enclosed in a private message. Please correct the error that occurs in the Enfold template.
October 31, 2018 at 3:19 am #1028345Hi,
The theme’s and the default WooCommerce gallery are virtually the same, but the latter has additional features like image variation switch and image zoom.
I tried to adjust the thumbnails on the theme’s default gallery but every modification that I used didn’t work.Best regards,
IsmaelOctober 31, 2018 at 9:55 am #1028398Hi,
I am not interested in the WooCommerce gallery.
There is a problem in the enfold template that I showed in a private message. The settings from the attachments are read rigidly in the code, so the settings may not work, e.g. in function.php
I think the problem is unsolved. That is why he writes to the helpdesk that the creators of the template solve this problem.
Since on the attached problem the manual change of settings, solves the error, it is enough to enter it in the fashion code. Question to the enfold developers in which place?
November 6, 2018 at 11:53 am #1030344Hi,
This filter works on my installation.
add_filter( 'woocommerce_get_image_size_gallery_thumbnail', function( $size ) { $size['width'] = 300; $size['height'] = 300; $size['crop'] = 1; return $size; }, 10, 1);
Please add it in the functions.php file.
Screenshot: https://imgur.com/a/v0HGhbk
Best regards,
IsmaelNovember 6, 2018 at 12:37 pm #1030366Thank you for solving the problem. It’s working fine now.
Do you know the solution that allows you to delete unused images in WordPress.
November 7, 2018 at 8:30 am #1030728Hi,
Great, glad you got it working. Maybe you could use a plugin like this to remove unused images? https://wordpress.org/plugins/media-cleaner/
Best regards,
RikardNovember 23, 2018 at 8:26 pm #1037106I wish there was a way to set the gallery-thumbnail images in Appearance>customize>woocommerce images, but there isn’t. My gallery-thumbnail images are blurry and set to 36×36 pixels, don’t know how this happened, and I see the solution is to add the following into the functions code:
add_filter( ‘woocommerce_get_image_size_gallery_thumbnail’, function( $size ) {
$size[‘width’] = 300;
$size[‘height’] = 300;
$size[‘crop’] = 1;
return $size;
}, 10, 1);I was going to do that but change the width to 100 and the height to 75 so it will have the same ratio as my other images in Woocommerce. Only problem is that in my functions is the following and I’m not sure what that is or if it will override the above code:
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;
}Should I put the code above that or delete that? I’m afraid to try it in case it messes up my website at this time.
Thanks!November 28, 2018 at 6:18 am #1038334 -
AuthorPosts
- You must be logged in to reply to this topic.