Tagged: archive, image size
Hi,
I have found the solution to change the image size directly in the functions.php of the enfold theme. Is there any way to change the image size in the functions.php of the child theme. My ways to try to override the existing images through add_image_size(‘entry_without_sidebar’, 1210,680,true); does not work.
This would allow us to keep the setting even when the theme is updated.
Thanks,
Benedikt
Hey Benedikt,
Try using this code in your child theme’s functions.php:
add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 );
function enfold_customization_modify_thumb_size( $size ) {
$size['entry_without_sidebar'] = array('width'=>1210, 'height'=>680, 'crop' => true);
return $size;
}
Best regards,
Nikko