Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1395929

    Hi,
    a small planned Woocommerce shop worries me: a few weeks ago I uploaded images there (1800 x 1200 px) and they were displayed correctly in the shop. In the meantime, there might have been some updates (?) – in any case, NEWly uploaded product images (in the same format 1800 x 1200 px) are only displayed square. If I exchange the newly uploaded product image with an “old” image – uploaded weeks ago – it is displayed in the correct format. I have already tried all possible CSS and PHP scripts from the forum – never did I get the desired result. The Woocommerce product images cannot be adjusted in the Costumizer either. I don’t want square images! Help, please!

    Best regards,
    Lutz

    #1395955

    Ok ok ok … I found it!!! Ismael already posted the solution on 13 januar!
    He wrote on woocommerce-shop-different-image-quality-depending-on-how-i-open-the-product/#post-1378523 “You can add the following code in the functions.php file to adjust the size of the catalogue 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';
    }

    Works perfectly – problem solved.

    #1395981

    Hi,

    Great! Glad to know that you have found the solution. Please let us know if you have more questions about the theme.

    Have a nice day.

    Best regards,
    Ismael

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce images always stay square’ is closed to new replies.