Hello, my blog post image is getting cropped vertically. Is there any way to override the autosize?
I just found this thread: https://kriesi.at/support/topic/featured-image-being-cropped/
Is there any way to edit the functions.php in the child theme instead so it doesn’t get overwritten when updated?
Hi, this is just telling me how to add custom code to functions.php I think. Can you help me with what code to add here to make it so the image is not cropped vertically please? Thanks so much!
Hi,
Sorry for the very late reply and thank you for your patience, to remove the crop from those images in the child theme, add this code to the end of your functions.php file in Appearance ▸ Editor:
add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 );
function enfold_customization_modify_thumb_size( $size ) {
$size['entry_with_sidebar'] = array('width'=>845, 'height'=>321, 'crop' => false);
$size['entry_without_sidebar'] = array('width'=>1210, 'height'=>423, 'crop' => false);
return $size;
}
Best regards,
Mike