Woocommerce image size of single product

Good morning,
I am having iscues with single product images which aren’t of the right size after upgrading woocommerce and the theme.
With new zoom feature I have all my images cut. I would like to have them back as they were.
You can see an exemple here: http://www.goldengroup.biz/negozio/brand-your-success/
Before upgrading the single product image filled all the space and it was a rectangle (750x500), but now they are all square.
Thank you very much in advance for your help.

Maybe disabling the zoom function solves the issue.

Add following snippet to your child team functions.php:

add_action( 'after_setup_theme', 'remove_gallery_zoom', 100 );

function remove_gallery_zoom() { 
remove_theme_support( 'wc-product-gallery-zoom' );
}

Unfortunately it doesn’t work for me. It does disable the zoom function but it doesn’t change the image size (which is cropped in a bad way, with missing text as well). Thank you for your reply!

Hi @matthijssmeets,

Thank you for your suggesntion.

@Diegueetus,

A lot has change in Woocommerce 3.0. They are now using their own settings for product images. Which you can’t see because X theme hides this settings. To have this settings back, please add the following code on your child theme’s functions.php file:
// Do Not Remove Woocommerce Plugin Settings // ============================================================================= function x_woocommerce_donot_remove_plugin_setting(){ if ( ! is_admin() ) { return; } remove_filter( 'woocommerce_product_settings', 'x_woocommerce_remove_plugin_settings', 10 ); } add_action('init', 'x_woocommerce_donot_remove_plugin_setting'); // =============================================================================
Once added, you will have the Product Display Image option settings back. You can check it out in Woocommerce > Settings > Products > Display tab; http://prntscr.com/6eysla
After changing the image size specially the single product image, do not forget to regenerate your thumbnails (https://wordpress.org/plugins/regenerate-thumbnails/).

Hope this helps.

1 Like

Hi Lely! Thank you! It works like a charm!
I tried this without a child theme. Speaking of which I would like to have an advice from you: if i switch now to a child theme, all my settings in the live website will not be affected by the theme change or do I have to pay attention in exporting all my settings, additional global and specific page css etc…?
Thank you very much for your support

Hi @Diegueetus,

If you switch to the child theme, all your settings in the live website will not be affected.

Regards!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.