Hello,
Please add the following code to change image size in your active theme function.php file.
// for thumbnail image size
function woocommerce_gallery_thumbnail_size_callback( $args ) {
return array(240,240,0);
}
add_filter( 'woocommerce_gallery_thumbnail_size', 'woocommerce_gallery_thumbnail_size_callback', 99 );
// for main image size
add_filter( 'woocommerce_get_image_size_single', 'woocommerce_get_image_size_single_callback',99);
function woocommerce_get_image_size_single_callback( $size ) {
return array('width' => 800, 'height' => 600, 'crop' => 1, );
}
Thread Starter
kosia
(@kosia)
Hello NikHil Gadhiya,
this seems to remove the blur, but now the scaling on the gallery thumbnail is all over the place, and zoom no longer works as it used to, is there any way i can just adjust the blur parameter, without messing with zoom and thumbnail?
Thanks! Kosia
p.s. it also ruined how it looks on the mobile version.
-
This reply was modified 1 year, 10 months ago by
kosia.
Hello,
You can increase the zoom by setting up Zoom Level option and for the mobile please enable the Disable Zoom on Mobile option from the plugin settings page.
Thank You.
Thread Starter
kosia
(@kosia)
Hello,
This is the part of the code i used to remove the blur.
// for main image size
add_filter( ‘woocommerce_get_image_size_single’, ‘woocommerce_get_image_size_single_callback’,99);
function woocommerce_get_image_size_single_callback( $size ) {
return array(‘width’ => 700, ‘height’ => 525, ‘crop’ => 0, );
}
width and height adjusted according to my own website needs, seems to fix the problem.
Inner zoom refuses to work, but lens still does, which is more than enough.
Thanks for your time, keep up the good work!
Kosia
You are welcome,
If you could take a few moments to rate it https://wordpress.org/support/plugin/product-video-gallery-slider-for-woocommerce/reviews/#new-post, we would really appreciate your help making the plugin better.
Thanks!