• Resolved TheMadWiddler1200

    (@themadwiddler1200)


    I read on the Themesandco site that the customizr theme makes duplicates of all my images. It makes one duplicate for the featured pages and two for the slider (1 full width & 1 fixed width). I don’t use the slider on my site so I really have no need for the extra two images to be duplicated. I use a plugin called EWWW Image Optimizer, which is really good for optimizing your images on wordpress…So when I upload my images, the plugin has to optimize my images, and having the customizr theme make duplicates means that the plugin has to also optimize the duplicates which makes the plugin take much longer to optimize my images. By stopping customizr from making duplicates, I could stop the plugin from optimizing those duplicates and it could save me some time.

    To stop the theme from creating duplicates, can I just remove the lines of code in the PHP file that makes duplicates?

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • (Edit: The posts to which the following sentences were referring were removed.
    Well, this is not fair. This is a free theme and everybody here gives his support in the spare time. Also every user who needs support needs nikeo.)
    Anyway this is the code to prevent the “duplication” (as you call it):

    add_action('after_setup_theme', 'remove_custom_thumbnails', 30);
    function remove_custom_thumbnails(){
        remove_image_size('tc-rectangular-size'); //or uncheck the proper option
        remove_image_size('tc-thumb');
        remove_image_size('slider-full');
        remove_image_size('slider');
    }

    If you then don’t want the regina images (@2x), uncheck the proper option in Customize.
    You still will have standard wordpress “duplicates”, to get rid of them, google for it.

    Thread Starter TheMadWiddler1200

    (@themadwiddler1200)

    You misunderstood the post, d4z_c0nf. I didn’t mean to say that nikeo should be here helping everyone with their theme problems. I meant it in a different way. I appreciate all the help I get, especially from you! You’ve helped me a ton, thank you!!

    I added the code you provided, but my images are still being duplicated and optimized in the EWWW Image Optimizer plugin. This plugin has an option to view all images that have been optimized and the recent images that I’ve uploaded all have 3 duplicates, also all optimized. I also already turn off the custom image sizes from wordpress. So all duplicates are coming from the theme. Could there be something wrong in the code maybe? Also what are the @2x images you mentioned?

    Looking forward to hearing from you, thanks for your help! ??

    Thread Starter TheMadWiddler1200

    (@themadwiddler1200)

    Hi @d4z_c0nf

    I cleared my browser cache and restarted my browser. The code you provided works great! Thank you very much!!! I’m still getting duplicates but it only one per image, and I found the source. It’s a gallery plugin called Envira Gallery. It has an option to resize image for mobile. Thats why i’m still getting duplicates, but only one, better than 4-7. Thanks for all your help @d4z_c0nf!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to stop Customizr theme from making duplicates of my images?!?’ is closed to new replies.