Hi,
in the functions.php there are 12 defined sizes for images. When lokking on the webserver via FTP much more are generated.
1. Where are the other sizes defined
2. How can I reduce the generated sizes to the ones I need (not more then 5 instead of >12) in order to safe diskspace on the webserver?
Thanks for your help.
Hey AbacoSoft,
You could try removing the image sizes from the functions.php it is the line by line settings for what image sizes are loaded into the avia_config array. There are also the 3 sizes used in the WordPress setting for media.
Best regards,
Mike
Hi Mike,
would’t that cause problems with the next update? Is there a way to use the functions.php of a child theme?
Hi,
Please use a child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/ and add following code to functions.php file of your child theme
function ava_image_sizes() {
remove_image_size('masonry');
remove_image_size('magazine');
remove_image_size('widget');
remove_image_size('featured');
remove_image_size('featured_large');
remove_image_size('extra_large');
remove_image_size('portfolio_small');
remove_image_size('gallery');
remove_image_size('entry_with_sidebar');
remove_image_size('entry_without_sidebar');
remove_image_size('square');
}
add_action( 'after_setup_theme', 'ava_image_sizes', 11 );
Best regards,
Yigit