-
AuthorPosts
-
February 13, 2020 at 12:10 pm #1184118
good morning
I have a problem that is getting more complicated every time.
Your theme creates as 23 extra images for each image that we upload to the online store.
This is a great disorder because having many products and 5 or 6 photos per product, plus 23 tumbails.Each product of 200 kb of photo exceeds 23 MB per product.
Even with the Smush plugin installed we cannot solve it.
How can you disable so many unnecessary thumbnails?
February 13, 2020 at 4:11 pm #1184190This is all images for ane upload
- This reply was modified 4 years, 10 months ago by brunet77.
February 17, 2020 at 4:08 am #1185059Hi brunet77,
Please add this code at the bottom of your child theme’s functions.php:
function remove_enfold_image_sizes() { remove_image_size('widget'); remove_image_size('square'); remove_image_size('featured'); remove_image_size('featured_large'); remove_image_size('extra_large'); remove_image_size('portfolio'); remove_image_size('portfolio_small'); remove_image_size('gallery'); remove_image_size('magazine'); remove_image_size('masonry'); remove_image_size('entry_with_sidebar'); remove_image_size('entry_without_sidebar'); } add_action('init', 'remove_enfold_image_sizes', 99);
This will not remove any image but will keep wordpress from generating this image sizes.
Hope it helps.Best regards,
NikkoFebruary 17, 2020 at 1:40 pm #1185209Thank you Nikko, is it necessary to create a child? I do not work with childs. Are childs recommended?
I have never used it because I like to have Enfold standar.
Why does Enfold not activate it in new installations?
Can childs give problems in the future?
February 17, 2020 at 1:56 pm #1185212Hi!
If you do not use a child theme, you are going to need to apply the changes each time you update the theme as they are going to be overwritten.
Switching to a child theme on Enfold is pretty easy. You can simply download pre-built child theme here – https://kriesi.at/documentation/enfold/child-theme/ and after activating it, you can go to Enfold child theme options > Import & Export and import parent theme settings. You may need to save Enfold child theme options after that.
Cheers!
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.