Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #852254

    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.

    #853108

    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

    #853385

    Hi Mike,
    would’t that cause problems with the next update? Is there a way to use the functions.php of a child theme?

    #853416

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.