WooCommerce Product Image Size
-
So, I am trying to get the product image to be a bit smaller (as the image it is showing is only 300px width anyway).
First I went to the Customisation > WooCommerce > Product Images > Main Image Width and set the value to 200px – no change.
Then, I found the code to change it manually. I entered the following in the functions.php file under function harrison_setup() :add_filter( ‘woocommerce_gallery_image_size’, function( $size ) {
return array(
‘width’ => 200,
‘height’ => ”,
‘crop’ => 0,
);
} );But instead of changing the image size, it just kind of makes the images (and thumbnails) zoom in a bit, however the holding div doesn’t get smaller, so it just looks ridiculous!
Does anyone know what I need to do, or what I am doing wrong?! I’m starting to go crazy! lol
The page I need help with: [log in to see the link]
The topic ‘WooCommerce Product Image Size’ is closed to new replies.