We’re locked at home because of covid-19, but working to support your business.
We apologize if you face any delay to get support response.
Stay safe and take care of your family and yourself.

Adjust variation image thumbnail size?

Stan Shine

Hello,

I wanted to ask if I can adjust how large the variation image thumbnail is shown on the product page. I’m looking for something larger like 200 x200. Can I do that?

Cheers,
Stan

Tanvirul Haque

Hello Stan Shine,

Please put those codes inside your theme’s functions.php to set the new size:

add_filter('woocommerce_get_image_size_gallery_thumbnail', function($size){
return array(
'width' => 200,
'height' => 200,
'crop' => 0,
);
});

After making changes to gallery thumbnail image sizes you may need to regenerate your thumbnails so the new sizes are used for existing images.

By the way, stay safe and take care of your family. Hopefully, Covid-19 outbreak will end up soon.

Thanks