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

    Hi there,
    You may remember this thread I created and that we worked on 5 years ago. It comes up #1 on Google search when looking for ways to reduce the wordpress media library size:
    https://kriesi.at/support/topic/photos-taking-up-a-huge-amount-of-space-on-my-site-storage-anything-i-can-do/

    I am once again bumping up against my 10 gig limit and realize that i really use very few of the sizes on my site. I would like to take a look at this but I see that at least one of the plugins involved is no longer supported and has some fairly signifiant issues with PHP 7+ according to support forums that are no longer monitored. :( Having said that, I still have the Simple Image Sizes plugin running on my site and it does appear I can use it to further reduce the number of photo size options.

    Has Enfold added anything in theme functionality to make it easier to seelct the default photo sizes or do we still need to do this in functions.php or the Simple Image Sizes Plugin? Any further advice before I embark on this?

    Thanks!
    Rob

    • This topic was modified 10 months, 2 weeks ago by goldengate415.
    #1429688

    Hey goldengate415,

    Thank you for the inquiry.

    As mentioned in the previous post, you can use the avf_modify_thumb_size filter to disable certain registered thumbnails, preventing the theme from generating unwanted image sizes and saving space.

    add_filter('avf_modify_thumb_size', 'avf_modify_thumb_size_mod', 10, 1);
    function avf_modify_thumb_size_mod($size) {
        unset($size['magazine']);
        unset($size['widget']);
        unset($size['portfolio_small']);
        unset($size['gallery']);
        unset($size['entry_with_sidebar']);
        unset($size['entry_without_sidebar']);
        unset($size['shop_thumbnail']);
        unset($size['shop_catalog']);
        unset($size['shop_single']);
        return $size;
    }
    

    Once the filter is added, you can use the following plugin to regenerate the thumbnails.

    // https://wordpress.org/plugins/regenerate-thumbnails/

    Please make sure to create a site backup before doing any of the above.

    Best regards,
    Ismael

    #1429767

    Thanks, I referred to my thread from 5 years ago and used the same plugins to save several more gigabytes of storage.
    I was just hoping / wondering that Enfold maybe added this functionality to the theme since it seems to come up frequently.
    OK to close this thread, thanks!

    #1429778

    Hi goldengate415,

    I’m glad that Ismael could help you :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Photos Storage: 5 years later – any changes in how Enfold handles photo sizes?’ is closed to new replies.