Tagged: $avia_config
Hi,
as suggested in this post https://kriesi.at/support/topic/override-the-global-avia_config-within-child-functions-php/ I tried to add a custom image size using the following code in my child theme:
//add custom images size
function avia_change_image_size_array() {
global $avia_config;
$avia_config['imgSize']['sfinder'] = array('width'=>120, 'height'=>120 , 'crop' => false);
$avia_config['selectableImgSize']['sfider'] = __('Solution finder thumb','avia_framework');
}
add_action( 'init', 'avia_change_image_size_array');
it seems to not work. I cannot see the new image size when I select a media. Where am I wrong?
Thanks
Hi deved!
You have a typo on “sfider”.
Cheers!
Elliott