add_filter( ‘woocommerce_get_image_size_single’, function( $size ) {
return array(
‘width’ => 1200,
‘height’ => 1200,
‘crop’ => 0,
);
} );
Hi !!
This was a solution for me, for horizontal photos, but for vertical photos, no.
Can it be modified to put a conditional, if the width is greater than the height that is ignored and if not put the dimensions automatically?
regards