How to edit thumbnail width img

Yog avi


i have spaceial product page and i need change the thumbnails src width .

I can see by default the img width is 100px.

I mean the src of image is 100×100

So thumbnails quality ia very low.

This example to product.

Tanvirul Haque

Hello Yog Avi,

Put those codes inside your child-theme’s function.php then try to regenerate your all thumbnail.

add_filter('woocommerce_get_image_size_gallery_thumbnail', function ($size) {
return array(
'width' => 100, // Change you desire width here
'height' => 100, // Change you desire height here
'crop' => 0,