Home Forums WoodMart support forum Stop Generating Image Sizes

Stop Generating Image Sizes

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #147342

    luan0409
    Participant

    I have to use the “Stop Generating Image Sizes” plugins to stop your theme from creating pictures for any picture that i upload to website, I think about 5 alternative images size

    Everytime i upload new picture, the whole website auto generate a lot of resize images, about 7 or 10

    Firstly, i turned off Woocommerce auto generating image sizes, reduce about 3 resize images

    Second i turned off WordPress auto generating image size, reduce about 2 resize images

    So the only thing left is your theme which auto generate 4 images.

    Please tell me how to turn this off. Becuz it kinda useless for me since i already have optimize pictures tools

    And this just create a bunch of images that my website dont even use

    Right now the plugins “Stop Generating Image Sizes” is doing great and stop the theme from generating new images. I did go to the file manager of my VPS to see, and i see only 1 original images instead of 5 or 10 images created by your theme and plugins.

    But I dont want to use plugins for this since it might slow down my site and add one more tab on the admin dashboard.

    So i want to turn it off by just removing your source code or if there is any option like that in the theme, it would be so much better.

    ===>PROOF: http://prntscr.com/pcenqj

    PS. Please don’t tell me it’s not becuz your theme anymore since i have tested this thing on a punch of VPS with fresh wordpress install, and with a lot òf other themes. Each theme will auto generate images from 4 like yours to even 10 pictures like Newsmag – Premium WordPress theme, which is even CRAZIER.

    #147383

    Artem Temos
    Keymaster

    Hi,

    Try to add the following PHP code snippet to the child theme functions.php file to do this

    function unset_image_sizes( $sizes ) {
        unset( $sizes['thumbnail'] );
        unset( $sizes['medium'] );
        unset( $sizes['large'] );
        unset( $sizes['medium_large'] );
        unset( $sizes['woodmart_shop_catalog_x2']) ;
        unset( $sizes['woocommerce_thumbnail'] );
        unset( $sizes['woocommerce_single'] );
        unset( $sizes['woocommerce_gallery_thumbnail'] );
        unset( $sizes['shop_catalog'] );
        unset( $sizes['shop_single'] );
        unset( $sizes['shop_thumbnail'] );
        return $sizes;
    }
    add_filter('intermediate_image_sizes_advanced', 'unset_image_sizes');

    Regards

    #147396

    luan0409
    Participant

    It worked 😀

    Thank you so much, Artem Temos.

    And please tell Mr or Ms or Mrs Elise Noromit

    to create a fresh wordpress site to test first before reply to any topic. Her or his irresponsible replies always drive me crazy.

    #147456

    Artem Temos
    Keymaster

    Great, you are welcome!

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

The topic ‘Stop Generating Image Sizes’ is closed to new replies.