• Resolved alisafang

    (@alisafang)


    Hi, after I use your plugin and upload images in reviews, the page size grows huge. The reason is image thumbnails use large image size. Is it possible that image thumbnails use small size, such as woocommerce_gallery_thumbnail and the lightbox use the big size, such as large? If this is possible, the page size will reduce and customer can click the thumbnail to view large size image by lightbox. If this is possible, could you add this feature in the plugin or tell the code so that I can add it in the child theme function.php. Thanks a lot.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Thank you for using CusRev.

    It is possible to customize the size of pictures uploaded by customers and displayed on product pages with the Lazy Load Reviews option enabled with the filter hook cr_ajaxreviews_image_size. For example:

    function my_cr_ajaxreviews_image_size( $image_size ) {
       //code to modify $image_size as required
       $image_size = 'woocommerce_gallery_thumbnail';
       return $image_size;
    }
    add_filter( 'cr_ajaxreviews_image_size', 'my_cr_ajaxreviews_image_size', 10, 1 );

    Get more details on this solution https://help.cusrev.com/support/solutions/articles/43000605650-list-of-filters

    Thread Starter alisafang

    (@alisafang)

    Hi, thanks for quick reply. But this code will make the thumbnail and lightbox image be the same. I want the thumbnail to be small size and lightbox image to be large size. Is it possible?

    Hi,

    Unfortunately, it is not possible. You can only use one image size for the thumbnail and lightbox.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘About image size’ is closed to new replies.