How to Disable Featured Image Auto Crop in WordPress

Featured images are an important part of any WordPress site, but it often becomes a challenge when trying to create a post or page. The auto-crop feature in the editor will cut off the bottom of your image if it doesn’t fit, which can be frustrating as you want the original size of the image.

Fortunately, there is a quick fix that you can use for how to disable featured image auto crop in WordPress by adding two lines of code into your theme’s functions file. This blog post will teach you how to do just that!

Disable Featured Image Auto Cropping in WordPress

By default, wordpress automatically resizes the images to the sizes set by defaults in wordpress, but if you don’t want the auto crop of your original images, you can do that by simply disabling the auto-cropping in wordpress.

Follow the below steps for disabling auto cropping in wordpress.

Open wordpress dashboard and navigate Appearance > Editor

wordpress theme editor

When you click on “editor,” pick the theme, you’re using. So you may modify your current theme to remove auto-cropping of the featured image

select theme in theme editor

Then, from the left-hand side panel (Theme Functions), find the functions.php file.

Search for add_image_size by CTRL+F once you find the function.php file

add_image _size in wordpress function.php file

Once you find add_image_size, you will see True value in the code. Simply change it to false, and it will disable the auto-cropping of your featured image.

add_image _size values to false

Now Update the file to save the changes you have made to the function.php file.

So as you have done with updating the setting and disabling the auto-cropping, these settings will apply to new images so that you might be thinking about the previous featured image sizes.

Don’t worry. You can regenerate all the previous featured images just by using the Regenerate Thumbnails Plugin.

How to Fix Featured Image From Cropping Automatically in WordPress

Regenerate Auto Crop Featured Images Using Plugin

Regenerate Thumbnail Plugin for wordpress

By using the Regenerate Thumbnail Plugin, you can regenerate all the previous featured images that are auto-crop.

First, you have to install the Regenerate Thumbnail plugin by going to Plugins > Add New and search for the regenerate plugin.

Once installed and activated. Go to Tools > Regenerate Thumbnails.

Regenerate Thumbnail Plugin settings

You will have 2 blue button labels: “Regenerate Thumbnails For All X Attachments” and “Regenerate Thumbnails For the X Featured Images Only.”

Click on both and wait for the process to complete. Once completed now you have to check the featured image to make sure it worked.

Note: If you are unable to access the wordpress dashboard for some reason, you can still do this step by FTP (File Transfer Protocol) by navigating to (/wp-content/themes/your-theme-name/functions.php).and edit the functions.php file with the values we talk about earlier.

You May Like:

How to Hide Featured Image in WordPress Post

How to Disable WordPress Admin Toolbar

How to Add Categories and Subcategories in WordPress

FAQ(How to Disable Featured Image Auto Crop in WordPress)

How do I fix the featured image size in WordPress?

1)Select Settings > Media from the WordPress dashboard.

2)In the number boxes beside Thumbnail size, input the dimensions of your featured images. (Both terms are used interchangeably by WordPress.)

3)Simply click Save Changes at the bottom of the screen.

How do I stop WordPress cropping my photos?

You can prevent WordPress from generating default image sizes by going to Settings » Media in the WordPress admin menu. WordPress has already defined your default picture dimensions; you’ll see them listed here. When you upload a new image, you must change these values to 0 so that WordPress does not auto crop the original images.

WordPress custom featured image size?

A good place to start when determining the optimum WordPress featured image dimension is 1200 x 628 pixels. These dimensions are common in WordPress themes and page layouts, and they look fantastic when shared on social media feeds.


By editing function.php and searching for add_image_size, you may turn off the auto-cropping of featured images. To disable it entirely, search for add_image_size in the function.php file and change the values to false. Alternatively, go to the Settings > media and modify the boxes to 0 to eliminate it completely.

Hopefully, after reading this article on how to disable wordpress auto-cropping of featured images, you will have a good understanding of what you should do or not do. If you have any queries, please leave them in the comments section.

Leave a Comment