New Landing How can we help? Themeforest Theme Support Neighborhood function to disable the creations of not necessary woocommerce pictures

Viewing 8 posts - 1 through 8 (of 8 total)
  • #29035
    user_simone
    Member
    Post count: 63

    Hello,
    my theme generates 13 wordpress images in various sizes.. I need to prevent the creation with a function of some sizes.
    Do you you know a function to disable the creation?
    (I know that exists some plugins but I prefer to insert a function)
    Please look at pictures attached.

    https://www.dropbox.com/s/3kfzq4nah4o3uqq/images_size.jpg

    Thanks
    Simone

    #29099
    Melanie – SUPPORT
    Member
    Post count: 11032

    You can find the image sizes that you can remove in functions.php

    set_post_thumbnail_size( 220, 150, true);
    add_image_size( ‘widget-image’, 94, 70, true);
    add_image_size( ‘thumb-image’, 600, 450, true);
    add_image_size( ‘thumb-image-twocol’, 900, 675, true);
    add_image_size( ‘thumb-image-onecol’, 1280, 960, true);
    add_image_size( ‘blog-image’, 1280, 9999);
    add_image_size( ‘full-width-image’, 1280, 720, true);
    add_image_size( ‘full-width-image-gallery’, 1280, 720, true);

    #29135
    user_simone
    Member
    Post count: 63

    Hi,

    I removed them but an issue has been generated.
    Please look at picture attached.

    https://www.dropbox.com/s/11xd8rzbl3mwbl7/error_occured.jpg

    Thanks
    Simone

    #29446
    Melanie – SUPPORT
    Member
    Post count: 11032

    Okay, then I’m afraid you cannot remove those :/

    #29448
    user_simone
    Member
    Post count: 63

    why not? please also look at picture attached.

    It’s important.

    thanks
    simone

    #29877
    Melanie – SUPPORT
    Member
    Post count: 11032

    Because the image sizes are there for a reason, which is that they are needed by the theme. So you cannot simply remove them. Cheers!

    #29885
    user_simone
    Member
    Post count: 63

    images below are not necessary for my woocommerce and considering that all images created are 11, means that sizes below are occupying 50% of my “Uploads” space->
    add_image_size( ‘thumb-image-twocol’, 900, 675, true);
    add_image_size( ‘thumb-image-onecol’, 1280, 960, true);
    add_image_size( ‘blog-image’, 1280, 9999);
    add_image_size( ‘full-width-image’, 1280, 720, true);
    add_image_size( ‘full-width-image-gallery’, 1280, 720, true);

    if I upload 5000 images means that 2500 images are created and not used..

    #30680
    Melanie – SUPPORT
    Member
    Post count: 11032

    I understand, but as I mentioned you cannot remove the code just like that – I recommend hiring a developer to make sure they are removed properly. Thank you!

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register