×

Best WordPress Hosting

Choosing the Best WordPress Hosting for Your Website

Themes & plugins

Recommended WordPress themes & Plugins

Web Tools

Hand-picked Web Tools & Softwares

Affiliate Networks

WordPress Compatible Affiliate Networks

Install WordPress

How to Easily Install WordPress in 5 Minutes

Get Started

How to Easily Install WordPress in 5 Minutes

SIGN IN YOUR ACCOUNT TO HAVE ACCESS TO DIFFERENT FEATURES

FORGOT YOUR PASSWORD?

FORGOT YOUR DETAILS?

AAH, WAIT, I REMEMBER NOW!
Digital Business Developer
  • BEGINNER'S GUIDE FOR WORDPRESS
  • Website Tools
  • Free blog setup
  • Blog
  • Contact
  • LOGIN

Hamza Shatela

  • WordPress
  • Monetize
  • Digital Marketing
  • Marketplace
Hire me
  • Home
  • Blog
  • WordPress
  • 3 Ways to Disable WordPress from Creating Thumbnails
May 11, 2022

3 Ways to Disable WordPress from Creating Thumbnails

3 Ways to Disable WordPress from Creating Thumbnails

by Shatela Hamza / Monday, 13 November 2017 / Published in WordPress
Disable WordPress Thumbnails

Stop wordpress from creating multiple thumbnail size images

Here is a head start that is really important and you should take into consideration if you still didn’t setup your blog yet. By default, WordPress duplicates the images that you upload into 4 different sizes (thumbnail, medium, medium-large and large) while uploading, and your theme and/or plugin(s) may create more sizes. This is a major issue when you are considering storage space, but there are solutions to this.

The easiest and fastest ways to stop generating image sizes (no coding experience needed)

  1. Login To Your WP Dashboard.
  2. Go to Settings and then, Media.
  3. Here you will find 3 various image sizes: thumbnail, medium, large. Decide which image sizes you won’t be using and then set those sizes to 0.
  4. Update and save your new settings.

Disable WordPress from Creating Thumbnails

Once you are done, check your theme, as many WordPress themes have their own set of image sizes that it will generate.

You can do this by using an (FTP) client like FileZilla and scan through the directory marked /wp-content/uploads/ to see if this is the case.

If you don’t know how to use an FTP client, then you can look for the following source code in your functions.php file to see if your theme is kicking out additional pictures that you don’t need.

  1. Go to your WP Dashboard.
  2. Navigate to Appearance and then, Editor.
  3. Find your theme’s function.php file and click on it (find it on the right-hand side).
  4. Search for the following code: add_image_size and/or set_post_thumbnail_size. If the .PHP file contains that code it will appear there and that means that your theme is generating images. If no image_size source code is shown, then you are lucky.

If you find that your .PHP file has the above mention code, then you need to delete the code and update your files in order to cut those out.

Once done edit the code of your theme file, you should go to Appearance » Editor. Go ahead and edit your functions.php file from here.

You need to delete a few line of code from this file that represents the default image sizes. It may look similar to this code below:

set_post_thumbnail_size( 1200, 9999 );
add_image_size( 'homepage-thumb', 220, 180, true );

In the above code, the two fuctions set_post_thumbnail_size and add_image_size allows your theme to generate additional image sizes. deleting the code prevents the theme to add more images in WordPress. If you are going to implement this, make sure you are adding the code in the child theme, as adding the code in the main theme file might be over ridden by the theme providers once the theme is update. To create a child theme for your website, check this article on How to Create a WordPress Child Theme.

Stop Generating Image Sizes Through Adding a code to functions.php

Simply navigate to Appearance > Editor > function.php and add the below code.

function add_image_insert_override($sizes){
    unset( $sizes['thumbnail']);
    unset( $sizes['medium']);
    unset( $sizes['large']);
    return $sizes;
}
add_filter('intermediate_image_sizes_advanced', 'add_image_insert_override' );

Stop Generating Image Sizes Using a plugin

Stop generating image sizes plugin is one of several plugins that can take care of this issue for you.

If you are facing issue with uploading files to your WordPress site, learn How to Increase the WordPress Maximum Upload File Size


 

Feel free to share
1
Share

About Shatela Hamza

Hamza Shatela is a front-end designer and online business developer with over a decade of digital marketing experience. As the founder of Slide Sigma, Hamza has worked with a series of professionals within the Medical, Financial, Non-Profit, Wedding and Entertainment industries.

What you can read next

Security on Wordpress
Increase Security on Your WordPress Website
Ways to Promote Website Online for FREE
18 Ways to Promote Your Website Online for FREE
How to Install WordPress Tutorial
How to Install WordPress
Envato market

Categories

  • Coding
  • Course
  • Css
  • Digital Marketing
  • Do More
  • How To's
  • Html
  • Monetize
  • Online Business
  • Personal
  • Search Engine Optimization
  • Software reviews
  • Techniques
  • Themeforest
  • Web Hosting
  • Website design
  • WordPress

Most Recent Posts

  • TemplateMonster Support Is Needed

    Templatemonster is a very known Marketplace whi...
  • Top 10 Best Charity And Church WordPress Themes 2020

    Top 10 Church WordPress Themes 2020 Digging on ...
  • Top 10 Medical Cannabis Themes- Themeforest 2020 (Recommended)

    Most popular Medical Cannabis themes are design...
  • Slidesigma India

    Establishing a new Slidesigma branch in New Del...
  • Boost an event

    Boost an Event

    Taylor Memorial UMC 4th Annual Pre-Thanksgiving...

SEO PowerSuit

SEO PowerSuit free Downlaod

RankPay

RankPay SEO Services

constandcontact

Get notified of new articles

Leave your email to get our weekly newsletter

My reviews and opinion on sites are ranked and reviewed on the basis of my own views and expert opinions. I use affiliate links, and I get a commission when you click on any referral website. That’s how I maintain this website. It doesn’t cost you anything. In fact, I guarantee you get the best price when you use my link. Hamzashatela.com cannot and does not present information about every site or site offer available.
© 2018 Hamzashatela. All rights reserved.

TOP
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Refresh
Powered By
CHP Adblock Detector Plugin | Codehelppro