• Resolved gajdoseni

    (@gajdoseni)


    Hello,
    Thanks for your great plugin, I really like it.
    My problem is, that he thumbs became square. Previously their hight was bigger than the width, and after a new version they became square. I can not find how to set this, I would like to have oblong.
    Maybe it is because of Woocommerce changes, but if you know the solution, please help me!

    Thanks,
    Eniko

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author SilkyPress

    (@diana_burduja)

    Hello,

    you need to disable the “Hard crop?” option next to the “Product thumbnails” field on the WP Admin -> WooCommerce -> Settings -> Products -> Display page, see this screenshot.

    But this will have effect only for future added images. In order to change the size of the already uploaded images you need to regenerate the thumbnails with the Regenerate Thumbnails plugin.

    Thread Starter gajdoseni

    (@gajdoseni)

    Dear Diana,
    thanks for you reply! Unfortunately this setting disappeared from Woocommerce, now you can set it only at the media settings of wordpress. I disabled it and regenerated the thumbnails, but still they are square. ??
    I also set the woocommerce setings in Divi for not crpped, but nothing has changed.

    Thread Starter gajdoseni

    (@gajdoseni)

    Finally I did it. ?? It was the fault of woocommerce 3.3…
    I have found a code to put in the theme’s functions.php:
    add_filter( ‘woocommerce_get_image_size_gallery_thumbnail’, function( $size ) {
    return array(
    ‘width’ => 200,
    ‘height’ => 300,
    ‘crop’ => 0,
    );
    } );

    Plugin Author SilkyPress

    (@diana_burduja)

    You’re right, I forgot that from WooCommerce 3.3 they changed the setting in the WP Admin -> Appearance -> Customizer -> WooCommerce -> Product Images.

    The code you’re using is a sure way to overwrite any of these other settings (from WooCommerce, from the theme or from the media settings).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Thumbnail image hight’ is closed to new replies.