Tagged: product images, thumbnails, woocommerce
-
AuthorPosts
-
January 17, 2025 at 10:21 pm #1475322
I have stripped down a clone of my live site to just have two themes and Woocommerce installed.
I have Woocommerce setup to show the original format of the product images and this works fine if I use a different theme than Enfold.
When I activate Enfold the product images are cropped and squared – like there is some setting or internal code in Enfold that overwrites the Woocommerce settings for thumbnails.Woocommerce thumbnail setup – see it here
Product image cropped and squared on “Edit Product” screen with Enfold active –

Image is shown in same way on shop page – see it hereCorrectly formatted product image on “Edit Product” screen with Twentysixteen theme active –
Hope someone can help my solve this issue.
Kind regards
DennisJanuary 19, 2025 at 3:22 pm #1475374Hey ProSEO,
I added this to your functions.php file in Appearance ▸ Editor: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'; }and it solved your webshop

and the Related products:

Best regards,
MikeJanuary 19, 2025 at 6:36 pm #1475383That is great!!
Thank you soo much :-)I have added the filter to my child theme on the live site and it solved the issues on the shoppage.
However on the “Edit Product” screen under Featured image the image still shows a cropped version – this is however of lessor importance :-)Kind regards
Dennis BJanuary 19, 2025 at 7:11 pm #1475387Hi,
Glad that this helps, the backend Featured image thumbnail is a WordPress function and I don’t know how to change this. But as you pointed out your customers won’t see this. Shall we close this thread then?Best regards,
MikeJanuary 22, 2025 at 4:09 pm #1475565Yes, please close thread as Solved :-)
January 22, 2025 at 5:38 pm #1475589Hi,
Thanks for the update. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard -
AuthorPosts
- The topic ‘Enfold forces Woocommerce product images to be cropped and square’ is closed to new replies.
