Tagged: accordion slider, Images
-
AuthorPosts
-
October 1, 2015 at 12:40 pm #512103
Like in attachment i have too many images generated with accordion slider: http://imgur.com/Y6pmZO5
For 20 images (1mb/item) my hosting space is over quotta 1GB !!October 1, 2015 at 6:36 pm #512349Hi Costi!
There are a couple of suggestions in this topic that you can try, https://kriesi.at/support/topic/how-to-disable-enfold-creating-media-image-sizes/.
Regards,
ElliottOctober 1, 2015 at 9:07 pm #512438Thanks Elliot,
The code was changed from 2014, is no longer the same. I tried to comment in function.php those lines but I get an error in front.
These lines we commented:$avia_config['imgSize']['widget'] = array('width'=>36, 'height'=>36); // small preview pics eg sidebar news $avia_config['imgSize']['square'] = array('width'=>180, 'height'=>180); // small image for blogs $avia_config['imgSize']['featured'] = array('width'=>1500, 'height'=>430 ); // images for fullsize pages and fullsize slider $avia_config['imgSize']['featured_large'] = array('width'=>1500, 'height'=>630 ); // images for fullsize pages and fullsize slider $avia_config['imgSize']['extra_large'] = array('width'=>1500, 'height'=>1500 , 'crop' => false); // images for fullscrren slider $avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400 ); // images for portfolio entries (2,3 column) $avia_config['imgSize']['portfolio_small'] = array('width'=>260, 'height'=>185 ); // images for portfolio 4 columns $avia_config['imgSize']['gallery'] = array('width'=>845, 'height'=>684 ); // images for portfolio entries (2,3 column) $avia_config['imgSize']['magazine'] = array('width'=>710, 'height'=>375 ); // images for magazines $avia_config['imgSize']['masonry'] = array('width'=>705, 'height'=>705 , 'crop' => false); // images for fullscreen masonry $avia_config['imgSize']['entry_with_sidebar'] = array('width'=>845, 'height'=>321); // big images for blog and page entries $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 ); // images for fullsize pages and fullsize slider
October 2, 2015 at 7:17 am #512579Hi!
If you want to remove the theme’s preset thumbnails, just add this in the functions.php file:
function wp_23223255_6469586506596() { add_image_size('masonry', 0, 0); add_image_size('magazine', 0, 0); add_image_size('widget', 0, 0); add_image_size('featured', 0, 0); add_image_size('featured_large', 0, 0); add_image_size('extra_large', 0, 0); add_image_size('portfolio_small', 0, 0); add_image_size('gallery', 0, 0); add_image_size('entry_with_sidebar', 0, 0); add_image_size('entry_without_sidebar', 0, 0); add_image_size('square', 0, 0); add_image_size('shop_single', 0, 0); add_image_size('shop_thumbnail', 0, 0); add_image_size('shop_catalog', 0, 0); } add_action( 'after_setup_theme', 'wp_23223255_6469586506596', 11 );
Use the follwing plugin to regenerate the thumbnails( since we set the dimension of the thumbnails to ZERO, they are not going to regenerated): https://wordpress.org/plugins/force-regenerate-thumbnails/
EDIT: Make sure to refresh the page before clicking the “Regenerate” button.
Note that this might impact the page speed because every page will load the original size of the image.
Regards,
IsmaelOctober 2, 2015 at 8:55 am #512614Hello Ismael,
Everything is OK, thanks! -
AuthorPosts
- The topic ‘Too many images generated by Accordion Slider’ is closed to new replies.