Images are important for all types of sites. Help attract users and improve the appearance of the website. The problem is that word press generates multiple thumbnails when updating a new image. This means that you can quickly get a huge media library, thus reducing the speed of your site. Therefore, this guide will show you how to delete thumbnails and clean up your media library from word press. Why delete old thumbnails from WordPress? Before we learn various ways to delete thumbnails, we will better understand why thumbnails should be deleted.
Each time an image is uploaded to the media library, WordPress creates multiple thumbnails to display the image in the recommended post, slider, etc. Some themes and plug-ins also require different image sizes. As a result, the media library can store a large number of fields, and the server takes up a lot of space, so the site speed may slow down. In addition, most hosting companies also limit the number of files in the cPanel account. For example, BlueHost is limited to 50000 files per account. Therefore, all these additional images will affect the user experience, and the cost will be higher if an upgrade plan is required. Therefore, it is important to manage images wisely and remove old preview images from the WordPress site.
In short, to keep the number of thumbnails small, you can delete all unused images in the media library. This will help you: optimize the media library and keep the website smooth without affecting the user experience of saving server resources. How do I delete thumbnails from word press? This guide shows three ways to delete old thumbnails from word press. All methods including plug-ins in WP admin manually are very effective and easy to apply, so you can choose the method most suitable for your technology.
1. If you manually delete the thumbnail (functions. PHP file) theme and register the custom image size, WordPress will generate thumbnails according to the specific size of the theme. A simple way to avoid unnecessary thumbnail generation is the function of the theme. Edit the PHP file. Although it will not be difficult to encode, it is recommended that users with experience in changing the subject core file use this method. Note: we will modify some core files of the theme. Therefore, in order to ensure the security of data, it is recommended to use the sub theme and back up the word press site. The first thing to do is navigate to WordPress Administration Panel > shapes > Theme Editor.
Male then the function in the topic file on the right. Select the PHP file. Male, then select the function in the text editor. The PHP file is displayed. If you look closely at the male code, the custom image size register code will be displayed. Specify a size for each thumbnail you create. As long as you disable the thumbnails you don’t want to generate. To do this, you must add \/ * at the beginning and * * at the end of the thumbnail to be disabled. For example, you can disable all of the following: Another option is to add \/ \/ at the beginning of the code and add comments in the line of code to be disabled. This can be useful if you want to disable specific lines of code. However, if you want to disable multiple thumbnails, it is recommended to use multiline comments \/ * * \/.
If you are satisfied with the changes, please update the file. That’s it You can prevent thumbnails disabled in PHP files from being generated in the theme. If there are plug-ins that generate thumbnails, you can do the same and disable them. To do this, plug in the plug
Navigate to in > editor and select the plug-in you want to edit. Then there is the function. Select the PHP file and repeat the process. 2. If it is inconvenient to edit and delete the core files of thumbnail themes and plug-ins in WP admin panel, you can also delete thumbnails from word press manager panel.
To do this, log in to the site and navigate to Settings > media. Three custom image sizes are displayed. Smaller medium size larger male by default, word press specifies a partial value for each image size. After uploading the image to the media library, the server will automatically set the thumbnail of the original image to this size. If there are many images, it may take up a lot of disk space. If you do not intend to use thumbnails, you can turn this feature off. Simply enter 0 as a value in all fields and save your changes. WordPress does not save multiple copies of the uploaded image because the height and width are set to 0.
This is an excellent and effective way to reduce the number of thumbnails generated by the site. 3. Delete WordPress thumbnails with plug-ins. The third method for WordPress to delete thumbnails is to use plug-ins. In this section, we will show you two excellent plug-ins. Let’s take a look at the media cleaner thumbnail regeneration corner tool. 3.1 – media cleaner media cleaner is an excellent free plug-in that helps clean up all unused thumbnails on your site. Therefore, please install and activate the plug-in first.
Then display the settings in the management section. There is also an advanced version of media cleaner with advanced functions, which costs $24. However, the free version allows you to delete thumbnails from WordPress sites. Therefore, to start image scanning, you must go to the media cleaner dashboard. Male then press the scan start button. After that, the plug-in scans all media on the website and displays the problem. Male media cleaner lists all media not used on the website. This is an unused image in a blog post, content, or component area. This is an image that occupies valuable space on the server. It is recommended to delete it. To do this, select the file you want to delete and click delete.
Move the selected image to the recycle bin. Conversely, if you plan to use some of these images later, you can ignore these files. Please note that the plug-in can no longer capture the corresponding image. 3.2 – another excellent tool for deleting micrographs from WordPress is micrograph regeneration. Male regenerate thumbnail is a very popular plug-in with more than 5 million active installations. Let’s take a look at how your site uses this plug-in. The first thing to do is to install and activate regenerate thumbnail.
The plug-in settings are displayed under the word press tools section. As can be seen from the name of male, the main focus of the plug-in is to regenerate thumbnails. If the option of creating thumbnails for a site is disabled, for example, all thumbnails of the site will not be updated when WordPress is created. However, you can instruct the server to create thumbnails manually. Therefore, you can use the plug-in to create thumbnails of various sizes and choose from settings. Therefore, if you add additional image sizes or want to generate thumbnails for specific images, you can click the thumbnail regeneration button to quickly generate thumbnails. In addition, if you need to log off the image size and delete the thumbnail from the website, you can activate this option and start regeneration. Now the plug-in regenerates the new thumbnail, word
Delete previous thumbnails from the dpress website. What is the method to delete the unused micrographs on the server? Now let’s look at how to delete unused thumbnails on the server and save valuable resources. For this operation, you can do any of the following: It takes a long time to use FTP plug-in to find all images manually. In addition, since there are free plug-ins that can be processed immediately, let’s see how to use the plug-in to delete all outdated and unused thumbnails. We will use a tool called force regenerate thumbnail to accomplish this task. The tool has not been updated for some time, but it still works normally. First, install and activate the plug-in on the site. In the WordPress tool section, you can view the plug-in settings. Male click all thumbnail regeneration button, the server will start importing all images on the site and regenerate thumbnails according to the set image size. If the previous image size is not adjusted to this parameter, the unused image will be deleted from the server! This is a batch process and a good way to easily delete all unused images on the server. This helps conserve server resources and potentially speed up the site. If you want to use custom size images on the protips site, it is recommended to specify the size in the media settings. In this way, WordPress only generates thumbnails of the corresponding size. For example, if you want to use 1024 * 1024 size, you can set it to: This helps to optimize the uploaded images and save server space. Bonus: how do I view the thumbnails generated by WordPress? If you’re still wondering if this will happen after reading a post about how to delete thumbnails from WordPress, there’s a quick way to see it. To view all media files uploaded to the site, go to WordPress administrator > media > library. But no thumbnails were found. There are two main options for determining the number of images on the site. Some hosts can use the number of files in the file manager to view the directory of all files. Another alternative is to use the FTP client to determine the number of files in the uploads folder. If there are images stored in other months or years, you must add the number of files to get the total. The number of thumbnails owned is the difference between the total number of images and the number of files in the media library. Another way to identify thumbnails is to confirm the file name. In most cases, thumbnails use the name and size of the parent image. For example, 150 for an image named \
It can help you quickly create thumbnails and delete previous thumbnails. This is the most recommended method in the list, because both plug-ins are free and very easy to use. Conversely, if you don’t want to use the plug-in, you can delete the previous thumbnail from WP admin. Very simple and effective. Finally, if your site wants to use custom size images, it is recommended to specify the size on the word press dashboard. Regenerating thumbnails using the force regenerate thumbnail plug-in can save a lot of time when changing themes or deleting image sizes. This is how to delete thumbnails from word press. If this guide is helpful, please share it on social media. To view more tutorials related to word press, you can view the blog section at any time. What is the method of deleting thumbnails? Do you know anyone else? Please leave comments below and let me know!