Gday team Kriesi
I recently added some code to my child theme that seemed to successfully modify thumbnail sizes. It worked in conjunction with the plugin regenerate thumbnails as per many of your support answers.
However, after a recent theme upgrade I noticed the issue return, prompting me to realise that perhaps my child function never did work, and that I may have inadvertently added it to my enfold functions.
I did not mean to do that, and am wondering now whether there is a way to do it ONLY from the child theme.
This is the code I used, but today upon testing it didn’t work for me:
function my_image_size()
{
global $avia_config;
$avia_config['imgSize']['widget'] = array('width'=>120, 'height'=>120);
}
add_action('init', 'my_image_size', 1);
Does that code look like it should work in the child theme? and so not requiring any modification of the parent. Please note, I did also run the regenerate thumbnails but it didn’t work today, so maybe something incorrect in my code?
cheers
Darryl
Hi itchybrain!
Thank you for using Enfold.
You can remove the modification then install this plugin: https://wordpress.org/plugins/simple-image-sizes/
Go to Settings > Media to adjust the “widget” thumbnail size.
Cheers!
Ismael
Gday Ismael
OK, thanks for your help with this, I’d really like to keep the parent details intact for future updates, so this plugin should enable me to keep it separated…much appreciated.
cheers
Darryl