Tagged: , ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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?

    #1184190

    problem-imagenes

    https://ibb.co/gg9TH8h

    This is all images for ane upload

    • This reply was modified 11 months, 1 week ago by  brunet77.
    #1185059

    Hi 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,
    Nikko

    #1185209

    Thank 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?

    #1185212

    Hi!

    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

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.