• Resolved mateszed

    (@mateszed)


    I can’t set product image thumbnail sizes after the recent Woocommerce update. When I go to the cstomizer, there are no image size settings, I can only set the ratios and not the sizes. Tutorials and screenshots show that there should be image size settings there, but they don’t appear for me. Setting the thumbnail sizes in the functions.php didn’t work either. Any tips on how I can fix this? The images are way too large now, I’m trying to set it to ~120px width.

    Thanks!
    Mate

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Job a11n

    (@jobthomas)

    Automattic Happiness Engineer

    @mateszed – it seems that you’ve got full-width enabled somewhere (maybe through Powerpack). Storefront is trying to compensate that by making the images wider. Could you try deleting that temporarily to see if that fixes the problem?

    Thread Starter mateszed

    (@mateszed)

    Hi, I tried that but there was no change. I can see from the regenerate thumbnails plugin that the images are locked to

    woocommerce_thumbnail: 324×0 pixels (proportionally resized to fit inside dimensions)
    woocommerce_single: 416×0 pixels (proportionally resized to fit inside dimensions)
    woocommerce_gallery_thumbnail: 100×100 pixels (cropped to fit)

    And I can’t edit this through the customizer or through the add_theme_support function. So I guess Storefront isn’t stretching the image, the size itself is set wrong and I can’t override it.

    Thanks for your help,
    Mate

    Thread Starter mateszed

    (@mateszed)

    (I’ve also tried disabling any plugins that might affect images, but I haven’t had any success with that either.)

    Thread Starter mateszed

    (@mateszed)

    I’ve found a temporary workaround by editing the widths in inc/class-storefront.php directly, but this isn’t a good solution so I’d still be happy to get your help on this one.

    Thanks,
    Mate

    Job a11n

    (@jobthomas)

    Automattic Happiness Engineer

    Hey @mateszed – I have no idea to be honest. If you’re a Powerpack user, it’d be best to contact the WooCommerce support at WooCommerce.com > My Account > Tickets. I can’t reproduce it on my test site and you’d have to share login details with us (which we obviously don’t want to do on a public forum).

    Hey Folks!

    This is the best document to refer to for changing sizes:

    https://github.com/woocommerce/woocommerce/wiki/Customizing-image-sizes-in-3.3

    If you want to change the Catalog Thumbnails (the thumbnails that show up in the Shop Page), you would do something like this:

    add_filter( 'woocommerce_get_image_size_thumbnail', function( $size ) {
    	return array(
    	'width' => 150,
    	'height' => 150,
    	'crop' => 0,
    	);
    	} );

    After adding that function, regenerate thumbnails and you should be good.
    https://www.ads-software.com/extend/plugins/regenerate-thumbnails/

    If you wanted to change the gallery_thumbnails you would do woocommerce_get_image_size_gallery_thumbnails instead.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can’t set product image sizes’ is closed to new replies.