Tagged: shop, thumbnails
-
AuthorPosts
-
September 26, 2022 at 12:39 pm #1366343
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?
-
This topic was modified 3 years, 1 month ago by
WebbR.
September 27, 2022 at 11:06 am #1366506Hey 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,
IsmaelSeptember 27, 2022 at 1:51 pm #1366547Hey 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,
FrankSeptember 28, 2022 at 9:28 am #1366668Hi,
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,
IsmaelSeptember 28, 2022 at 11:03 am #1366685OK, understanding… THX!
September 28, 2022 at 2:16 pm #1366719Hi,
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,
RikardSeptember 28, 2022 at 2:29 pm #1366721Can be closed! Thank you!
September 28, 2022 at 3:01 pm #1366729Hi,
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 -
This topic was modified 3 years, 1 month ago by
-
AuthorPosts
- The topic ‘Woocommece Thumbnails are square since last theme update’ is closed to new replies.
