Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1376460

    Hello,
    the product image sizes in woocommerce are cropped to 450 x 450 px, even if i use a different setting in the customizer. (I have read here in the support forum that other users are having the same problem …
    Since I upgraded from Enfold 5.0.1 to 5.3 (and to Woocommerce 7.2), the product image sizes are not shown correctly. In the customizer I tried the setting without cropping the images and also with cropping with the aspect ratio 4:3. Nothing helped. The products which are already in the shop are shown correctly, but only the new uploaded images are cropped to a square. (450 x 450)

    And it’s not a woocommerce issue because I have a similar shop with a different theme and there the product images are shown correctly. There must be some issues with the enfold theme …. can you help please?
    Cheers,
    George

    #1376652

    Hey hgschaffler,

    Thank you for the inquiry.

    The theme sets its own default image size for the catalogue page to create a more uniform grid, but it can be disabled by adding this code in the functions.php file.

    add_filter( 'avf_wc_before_shop_loop_item_title_img_size', 'avf_wc_before_shop_loop_item_title_img_size_mod', 10, 1 );
    function avf_wc_before_shop_loop_item_title_img_size_mod( $thumbnail_size ) {
        return 'woocommerce_thumbnail';
    }
    

    Best regards,
    Ismael

    #1376852

    hey ismael,
    thanks for the code, it’s working.
    So this means now that the thumbnails are shown in their original aspect ratio, right?

    Thank you very much!

    best,
    george

    #1377004

    Hi,

    Glad to know that the filter is working. Yes, the catalogue images will now display based on the settings in the Appearance > Customizer > Woocommerce > Product Images panel. Let us know if there is anything else we can assist you with.

    Have a nice day.

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.