Tagged: shop, thumbnails
Hi everybody, it seems that – since the last Enfold theme-update – the woocommerce thumbnails are square.
https://www.jagador.de/shop/
The settings in customizer is on no change but the thumbs are cropped to square.
Is there any change in Enfold concerning the image sizes?
When I switch to storefront, images are displayed correct.
Any idea how to fix this?
Hey WebbR,
Thank you for the inquiry.
Adding this filter in the functions.php file should help.
dd_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';
}
This will revert the thumbnails back to default (woocommerce_thumbnail).
Best regards,
Ismael
Hey Ismael, thx for the Code who worked fine!
But could you please explain why the Update changed the Thumbnailsize? A bit strange beacause the Change ist only visible on new Prroducts – only after regenerate all thumbs it is equal for all products…
Anyway THX a lot!
Best regards,
Frank
Hi,
Glad to know that the filter is working. We provided an explanation in the following thread.
// https://kriesi.at/support/topic/bug-in-enfold-for-woocommerce-prduct-images/#post-1363586
Using the filter just reverts the thumbnail size back to the default woocommerce thumbnail, which is required by the Woocommerce > Product Images settings.
Best regards,
Ismael
OK, understanding… THX!
Hi,
Great, I’m glad that Ismael could help you out. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
Rikard
Can be closed! Thank you!
Hi,
Thanks for letting us know, I’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard