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

    Hi,
    https://gyazo.com/4ec7b1de4a8d196e974e8d373b8abaf5

    I am using the default woocommerce product catalog page. For some reason the images are 450×450 px in 1 1:1 aspect ration instead of a 16:9 aspect ratio as i want it. Woocommerce moved the image settings into the customizer and states if the settings dont show up there one should contact the theme author. Any hints on how i get the images to the desired aspect ratio? Funny thing is it was working before but new images uploaded are always 450×450 now instead of 640×360.

    Whats interesting: It was working before, then suddenly newly uploaded images had this 1:1 aspect ratio. I used regenerate thumbnails and now all have the 1:1 aspect ratio… Maybe this is because woocommerce moved this setting? I am not sure if it is an enfold or a whoocommerce problem.

    Any help is highly appreciated. Thanks!
    Patrick

    • This topic was modified 1 year, 10 months ago by j0schi.
    #1366493

    Hey j0schi,

    Thank you for the inquiry.

    The theme sets the product thumbnail size to 450x450px by default but you can use this filter in the functions.php file to revert the product thumbnail settings back to default.

    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';
    }
    

    Related threads:

    // https://kriesi.at/support/topic/bug-in-enfold-for-woocommerce-prduct-images/
    // https://kriesi.at/support/topic/woocommerce-product-image-size-bug/

    Best regards,
    Ismael

    #1366627

    That worked, thank you so much!
    And sorry, somehow i did not find the old threads to this topic :(

    Kind regards
    Patrick

    #1366654

    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 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to set image sizes / aspect ratio in product catalog’ is closed to new replies.