I'm in the process of moving my site to a different location and have noticed the large number of image files of different sizes being generated. I think this is due to Salient? Is there a way to prevent this if it's not absolutely necessary? Thanks
For Salient do you feel it would be ok to set the thumbnail, medium and large sizes for wordpress images to 0 as you seem to declare your own image sizes?
I do not need any wide, wide and tall or tall images and my hosting is being glutted up with extra generated images. is there a way to turn off all the extra image iterations that salient is creating?
Speciafically my site is mostly woo commerce so i am only using square images
By default, WordPress generates three sizes of every image uploaded, as there is a drop down option in the media library that lets you select what size of the image to be displayed - medium, thumbnail, etc.
For the other image sizes generated by the theme, you will need to edit the media.php file in order to disable the sizes. You can find the file in the helpers folder under the nectar folder. I strongly suggest you edit the file using your hosting providers cPanel or with a FTP application, as if you do anything that breaks your site, you will not be able to access your site.
The best option would be to 'comment out' whatever sizes you don't need, this serves the same purpose as deleting the code while still enabling you to retain it if you decide you need it later on. Keep in mind, if any changes are made to the file for a update to the theme, then whatever changes you made will be overridden as the file is replaced with a new copy.
To comment out the code, simply place '//' at the beginning. It would look like this: //add_image_size( 'wide', 1000, 500, true );
Please note: I am not a member of the support team, but an avid user of the theme and I came across your ticket and thought I'd jump in to assist yourself and other theme users who may have the same issue later on.
Hi all,
I'm in the process of moving my site to a different location and have noticed the large number of image files of different sizes being generated. I think this is due to Salient? Is there a way to prevent this if it's not absolutely necessary? Thanks
Hey Again,
This might help : https://wpengine.com/resources/wordpress-media-library-clean-up/ .
Thanks
ThemeNectar Support Team
Hi Tahir,
For Salient do you feel it would be ok to set the thumbnail, medium and large sizes for wordpress images to 0 as you seem to declare your own image sizes?
Thanks
Yes you can try that as well .
Thanks
ThemeNectar Support Team
I do not need any wide, wide and tall or tall images and my hosting is being glutted up with extra generated images. is there a way to turn off all the extra image iterations that salient is creating?
Speciafically my site is mostly woo commerce so i am only using square images
ie how do I turn these off
Hey Jen!
By default, WordPress generates three sizes of every image uploaded, as there is a drop down option in the media library that lets you select what size of the image to be displayed - medium, thumbnail, etc.
You can find more information about disabling those default sizes here: https://www.wpbeginner.com/wp-tutorials/how-to-prevent-wordpress-from-generating-image-sizes/
For the other image sizes generated by the theme, you will need to edit the media.php file in order to disable the sizes. You can find the file in the helpers folder under the nectar folder. I strongly suggest you edit the file using your hosting providers cPanel or with a FTP application, as if you do anything that breaks your site, you will not be able to access your site.
The best option would be to 'comment out' whatever sizes you don't need, this serves the same purpose as deleting the code while still enabling you to retain it if you decide you need it later on. Keep in mind, if any changes are made to the file for a update to the theme, then whatever changes you made will be overridden as the file is replaced with a new copy.
To comment out the code, simply place '//' at the beginning. It would look like this:
//add_image_size( 'wide', 1000, 500, true );
Please note: I am not a member of the support team, but an avid user of the theme and I came across your ticket and thought I'd jump in to assist yourself and other theme users who may have the same issue later on.
Hey Alnug,
You can overwrite the Nectar Images Size Function via a Child Theme . See url : http://themenectar.com/docs/salient/modify-image-sizes/ .
Thanks
ThemeNectar Support Team