Stop image cropping / scale product images
-
Hi,
I’m having a nightmare with some of the images on my site. I have long rectangular images for some products which keep cropping to 300×300 in the middle of the product.
I want the product archive thumbnails to be square but just scaled down to fit a 300×300 square without any cropping.
I’ve tried the following but it didn’t make a difference:
add_filter( ‘woocommerce_get_image_size_gallery_thumbnail’, function( $size ) {
return array(
‘width’ => 300,
‘height’ => 300,
‘crop’ => 0,
);
} );Also, the single product page is showing the full image. I take it this is because it’s a long narrow image so I need the same for this i.e. scaled down.
Any help would be really appreciated.
The page I need help with: [log in to see the link]
- The topic ‘Stop image cropping / scale product images’ is closed to new replies.