Viewing 26 posts - 1 through 26 (of 26 total)
  • Author
    Posts
  • #1021535

    I have a problem with the quality of the photo gallery in the store, the pictures are blurred.

    #1021770

    Hey creativeopole,

    Here are some threads to consider:

    Woocommerce gallery layout, and blurry images

    https://kriesi.at/support/topic/blurry-product-image-in-woocommerce-and-bigger-button/

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1022018

    The 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.

    #1022319

    Hi 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,
    Victoria

    #1022356

    I have disabled caching and minification for now. However, it did not help.

    #1022569

    Hi,

    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,
    Rikard

    #1022696

    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

    The problem does not arise from the cache plugin. I found a problem and sent it in the picture below.

    #1023713

    Hi,

    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,
    Ismael

    #1023775

    I’ve pasted your code in function.php into the child theme. Unfortunately, it still did not help.

    #1024640

    Hi,

    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,
    Ismael

    #1024721

    This solution also did not help. Despite the change in the size and regeneration of the thumbnails did not help.

    #1025345

    Hi,

    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,
    Ismael

    #1025384

    None 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.

    #1025710

    Hi,

    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,
    Ismael

    #1025852

    I have a backup. You can try to fix the problem with thumbnails.

    #1026320

    Hi,

    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,
    Ismael

    #1026359

    I am sending FTP. Please enter the change in the template child theme.

    #1027373

    Hi,

    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,
    Ismael

    #1027391

    Hi,

    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.

    #1028345

    Hi,

    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,
    Ismael

    #1028398

    Hi,

    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?

    #1030344

    Hi,

    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,
    Ismael

    #1030366

    Thank you for solving the problem. It’s working fine now.

    Do you know the solution that allows you to delete unused images in WordPress.

    #1030728

    Hi,

    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,
    Rikard

    #1037106

    I 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!

    #1038334

    Hi lisetyrrell,

    Please open a new thread and include admin login details in private so that we can have a closer look at your site.

    Best regards,
    Rikard

Viewing 26 posts - 1 through 26 (of 26 total)
  • You must be logged in to reply to this topic.