• Resolved milenyums

    (@ozguryaazici)


    Hello there. I have installed the new version. The dimensions of the variation products was 100 px. The default widget size is 100 px. there is no way to set this up. The variation is known as 100 px. back to the previous version, no problem. where to get the latest version.

    how to fix it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Add this fix to functions.php:

    if ( ! function_exists( 'fix_single_product_image_sizes') ) {
       function fix_single_product_image_sizes() {
         $sizes = wc_get_image_size( 'woocommerce_single' );
         if ( ! $sizes['height'] ) {
           $sizes['height'] = $sizes['width'];
         }
    
     return array( $sizes['width'], $sizes['height'] );
     }
    
       add_filter( 'woocommerce_gallery_thumbnail_size', 'fix_single_product_image_sizes' );
    }
    • This reply was modified 5 years, 5 months ago by jehad.dev.
    Plugin Support Yuki K a11n.

    (@yukikatayama)

    Automattic Happiness Engineer

    Hi there,

    There is a known bug where the variable images changed to 100×100 dimension. Fix will be in 3.5.1. In the meantime, there is a workaround mentioned in the bug report here: https://github.com/woocommerce/woocommerce/issues/21646

    Cheers,
    Yuki

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘New version variable image size problem’ is closed to new replies.