Hi,
I was successfully able to change the thumbnail resolution for the Latest News Preview pic thumbnail by modifying the following line in the Enfold functions.php file:
$avia_config[‘imgSize’][‘widget’] = array(‘width’=>36, ‘height’=>36); // small preview pics eg sidebar news
However, it gets overwritten when I update the theme.
I tried putting this code in my Child functions.php file but it didn’t seem to work:
function my_image_size()
{
global $avia_config;
$avia_config[‘imgSize’][‘widget’] = array(‘width’=>80, ‘height’=>80);
}
What code could I add to my child functions.php theme so that I don’t have to remember to change the parent .php file when I update the theme?
Best,
Doug
Hey dburton77!
Please add following code to functions.php file of your child theme instead
add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 );
function enfold_customization_modify_thumb_size( $size ) {
$size['widget'] = array('width'=>80, 'height'=>80);
return $size;
}
Regards,
Yigit
Fantastic! It works. Thank you. Kriesi has the best support ever!
Doug