Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1405118

    Hi

    If you go to my store front on https://madaboutmara.com/purchase/ you will see that there are two images that are cropped 1:1 whilst all the otehrs are displayed in the format I uploaded them in

    The two images that are not showing correctly are two new products I added yesterday. It’s been quite a long time since I added new products to the shop

    If I edit an old product and re-add the same display image that is currently there, it also becomes square.

    My Woocommerce settings in APPEARANCE…CUSTOMISE…WOOCOMMERCE…PRODUCT IMAGES has “Images will display using the aspect ratio in which they were uploaded” set as the default, as it has always been

    Can you see any reason why new images are being cropped by Woocommerce 1:1 instead of leaving them in the aspect ratio they are uploaded in ?
    Thank you in advance

    Ivan

    #1405131

    Hi. Just a bit of additional info, when I go to

    My Woocommerce settings in APPEARANCE…CUSTOMISE…WOOCOMMERCE…PRODUCT IMAGES as I have stated above me setting is :

    – “Images will display using the aspect ratio in which they were uploaded” set as the default, as it has always been

    When I select the other 2 options (1:1 or a customised aspect ratio) the preview page displayed to the right does not change

    • This reply was modified 1 year, 6 months ago by ivanglaser.
    #1405249

    Hi,
    Thank you for your patience and the link to your page, but I don’t see any square images on the page they all look to be landscape.
    Can you tell us which images you mean or include a screenshot to point out the issue.

    Best regards,
    Mike

    #1405331

    Hi

    Screenshot showing square images

    https://app.box.com/s/n4cx0mjl2lrfnq8rjkwz3xq3kqdocq70

    Do you not see what I see ?

    Cheers

    Ivan

    • This reply was modified 1 year, 5 months ago by ivanglaser.
    #1405342

    Hi,

    Thank you for the screenshot.

    You may need to add this filter in the functions.php file to correct the aspect ratio of the product images.

    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

    #1405388

    Thank you Ismael. That worked !

    Cheers

    #1405459

    Hi,
    Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Woocommerce image issues’ is closed to new replies.