Product thumbnail
Hello,
I want to have product thumbnail in size 114x171.
With this code works, but only if I use main functions in functions.php:
add_filter ('woocommerce_get_image_size_gallery_thumbnail', function ($ size) {
return array (
'width' => 114,
'height' => 171,
'crop' => 0,
);
});
After update, the function is gone.
In the Child Theme / functions.php does not work.
Is there anything in the child theme functions.php?
I want to have product thumbnail in size 114x171.
With this code works, but only if I use main functions in functions.php:
add_filter ('woocommerce_get_image_size_gallery_thumbnail', function ($ size) {
return array (
'width' => 114,
'height' => 171,
'crop' => 0,
);
});
After update, the function is gone.
In the Child Theme / functions.php does not work.
Is there anything in the child theme functions.php?
Comments
There are many types of featured images in the theme, here are instructions for changing them:
1. To change the size of the images used in portfolio/blog, please navigate to theme options>blog,portfolio&shop>featured image.
2. To change the size of the default WordPress gallery images, please go to settings>media.
3. To change the woocommerce images size please go to the customizer tool in wordpress and change it in the front-end.
More information HERE
Notice!
Remember to use thumbnail regeneration after you make your changes. Otherwise, the images will not change their size.
thanks