New image in shop catalog has changed to 450×450 from normal you could see that on https://bokalind.is/baekur/handbaekur/ or https://bokalind.is/baekur/fraedibaekur/
I have noticed it in Responsive Images thumbnails overview, images aspect ratio
• 36*36 – Widget (added by theme)
• 80*80 – thumbnail (WP default size)
• 100*100 (cropped) – woocommerce_gallery_thumbnail (added by a plugin)
• 120*120 (cropped) – shop_thumbnail (added by a plugin)
• 180*180 – Square (added by theme)
• 450*450 (cropped) – shop_catalog (added by a plugin)
• 705*705 – Masonry (added by theme)
How can I changed it back to normal? It looks like Enfold plugin as don it
Hey Omar Skapti,
Thank you for the inquiry.
The theme sets the product thumbnail to shop_catalog (450x450px) by default, and this overrides the value set in the Woocommerce > Product Images > Product Thumbnail Width field.
To change this behavior and to revert back to the default product thumbnail, you have to add this filter in the functions.php file.
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';
}
Best regards,
Ismael
Hey Ismael
Thanks, IT WORKS :)
Was that some plugin some did that?
I forgot one. Could I put text in above it, to describe what I did?
Hi,
You can add comment as following
/* This is the comment to describe what I did */
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';
}
Cheers!
Yigit