Support » Plugin: WooCommerce » Changing crop position

  • Resolved David Bennett

    (@djbdjb)


    Hi

    I’m trying to change the automatic crop position of images uploaded to WooCommerce. At the moment it just does a 300 square cropped to the centre of the image however I’d like to do a 300 square cropped from the top of the image. If you have a look at the link you’ll see the images of the ladies are chopping the tops of the hats off – the important bit!

    I’ve had success in the past on standard image thumbnails using this code in my theme functions.php file:

    add_image_size( 'thumbnail', 200, 200, array( 'center', 'top' ) );

    So I’ve changed that to this, regenerated thumbnails and nothing’s changed!

    add_image_size( 'woocommerce_thumbnail', 300, 300, array( 'center', 'top' ) );

    Can anyone help?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changing crop position’ is closed to new replies.