Tagged: product image, woocommerce
Hi,
Coinciding with the latest Enfold update, the images of the new products included in the WooCommerce default page appear cropped.
I checked on WooCommerce, but couldn’t find the solution. I wonder if this is not due to the new Enfold update.
Do you have any feedback on this?
The site in question is this:
https://clueb.it/libreria/
where you can see the last two products inserted that have the cropped image.
Best regards
Oriano
Hey orianos,
Thank you for the inquiry.
You may need to add 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
Hi Ismael, I have tried your workaround and it seems to work, Thanks.
But now my question is:
this bug will be fix with the next Enfold update?
I ask this to avoid that on the occasion of the next Enfold update this workaround code can create new conflicts.
What is your opinion?
Best regards
Oriano
Hi,
Thank you for the update.
Did you use the filter? The filter can be added in the child theme’s functions.php file. You don’t have to redo it again on every update. It will override the default thumbnail shop_catalog and replace it woocommerce_thumbnail.
Best regards,
Ismael
Hi Ismael,
Yes I use your filter and it seems to work, Thanks.
Hope this bug will be fix with the next Enfold update?
Best regards, and thank for Enfold theme :)
Oriano
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