search
HomeCMS TutorialWordPressModify Featured Image Size in WordPress

The featured image is one of the most important images you can add to your blog post. The reason why the featured image is so important is because of how it is used in WordPress.

When people stumble upon a link to your website shared on social media, the first thing they see is the featured image and post title. This means that your featured image will influence whether people will click through to your post from social media.

These images can also serve another important function, depending on the theme you have installed on your website. They can appear anywhere on your website that links to articles. For example, let's say you have a sidebar that displays your top five most read articles. You will be able to display your post title along with the corresponding featured image in the sidebar.

Modify Featured Image Size in WordPress

This can make the site more visually appealing and potentially increase click-through rates for these articles.

Some themes also display featured images within the article body, most directly below the post title. The featured image variations shown here generally have the largest dimensions of all images.

When you upload an image to your media library, WordPress automatically generates a thumbnail for it. Currently, WordPress generates four different image sizes by default.

These correctly named sizes are: Thumbnail (150 pixels), Medium (300 pixels), Medium (768 pixels), and Large (1024 pixels).

Two more variants with widths of 1536px and 2048px were added in version 5.3. By default, they are not accessible through the WordPress admin dashboard. Some themes can also define specific dimensions for featured images. For example, the WordPress Twenty TwentyOne theme creates a 1568px wide variant that displays on top of the post title.

WordPress will generate all of these variations for any featured image you upload to your site.

Depending on the theme you use, some of these generated images may be too large. For example, the featured image in my post only displays at a width of 1250px. However, when I accessed the post, WordPress still loaded the 1568px wide image.

Modify Featured Image Size in WordPress

Larger images mean larger file sizes, which is a waste of resources for both you and your visitors. There is no need to generate a 1568 pixel wide featured image when you only display the featured image at a maximum width of 1250 pixels.

Changing the featured image size will save storage space and make the page load faster for visitors. Win-win!

If you don't use any plugins, WordPress will only show you three different image sizes under Settings > Media. They are Thumbnail, Medium and Large. If you only want to change these three values, you can do so without installing additional plugins.

Modify Featured Image Size in WordPress

Changing the dimensions of other image variations will require you to change your theme files or use a plugin. I'm going to show you how to do this using a plugin called Simple Image Sizes. After installing and activating the plugin, you will see the Settings > Media page as shown below.

Modify Featured Image Size in WordPress

You can now simply specify your own dimensions for different image variations. Set the width and height to zero to prevent WordPress from generating any images of that size. For example, I set the width and height to 0 for the 1536px and 2048px variants.

Modify Featured Image Size in WordPress

After specifying your own dimensions, you can click the Save Changes button. Any future content uploaded to the media library will generate variations based on the size you set.

The last thing you should do now is regenerate a modified variant of the old image. Just click Regenerate Thumbnails and the plugin will do it for you.

Modify Featured Image Size in WordPress

Final Thoughts

In this tutorial, we briefly discussed several important aspects of featured images in WordPress. I hope this helps you understand the purpose of featured images and how to change the size of featured images in WordPress.

I also want to mention that you should not enter arbitrary values ​​for the image size. Find out the most common sizes for images displayed on your site and change these settings accordingly.

The above is the detailed content of Modify Featured Image Size in WordPress. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
How does WordPress's plugin ecosystem enhance its CMS capabilities?How does WordPress's plugin ecosystem enhance its CMS capabilities?May 14, 2025 am 12:20 AM

WordPresspluginssignificantlyenhanceitsCMScapabilitiesbyofferingcustomizationandfunctionality.1)Over50,000pluginsallowuserstotailortheirsiteforSEO,e-commerce,andsecurity.2)Pluginscanextendcorefeatures,likeaddingcustomposttypes.3)However,theycancausec

Is WordPress suitable for e-commerce?Is WordPress suitable for e-commerce?May 13, 2025 am 12:05 AM

Yes, WordPress is very suitable for e-commerce. 1) With the WooCommerce plugin, WordPress can quickly become a fully functional online store. 2) Pay attention to performance optimization and security, and regular updates and use of caches and security plug-ins are the key. 3) WordPress provides a wealth of customization options to improve user experience and significantly optimize SEO.

How to add your WordPress site in Yandex Webmaster ToolsHow to add your WordPress site in Yandex Webmaster ToolsMay 12, 2025 pm 09:06 PM

Do you want to connect your website to Yandex Webmaster Tools? Webmaster tools such as Google Search Console, Bing and Yandex can help you optimize your website, monitor traffic, manage robots.txt, check for website errors, and more. In this article, we will share how to add your WordPress website to the Yandex Webmaster Tool to monitor your search engine traffic. What is Yandex? Yandex is a popular search engine based in Russia, similar to Google and Bing. You can excel in Yandex

How to fix HTTP image upload errors in WordPress (simple)How to fix HTTP image upload errors in WordPress (simple)May 12, 2025 pm 09:03 PM

Do you need to fix HTTP image upload errors in WordPress? This error can be particularly frustrating when you create content in WordPress. This usually happens when you upload images or other files to your CMS using the built-in WordPress media library. In this article, we will show you how to easily fix HTTP image upload errors in WordPress. What is the reason for HTTP errors during WordPress media uploading? When you try to upload files to Wo using WordPress media uploader

How to fix the issue where adding media buttons don't work in WordPressHow to fix the issue where adding media buttons don't work in WordPressMay 12, 2025 pm 09:00 PM

Recently, one of our readers reported that the Add Media button on their WordPress site suddenly stopped working. This classic editor problem does not show any errors or warnings, which makes the user unaware why their "Add Media" button does not work. In this article, we will show you how to easily fix the Add Media button in WordPress that doesn't work. What causes WordPress "Add Media" button to stop working? If you are still using the old classic WordPress editor, the Add Media button allows you to insert images, videos, and more into your blog post.

How to set, get and delete WordPress cookies (like a professional)How to set, get and delete WordPress cookies (like a professional)May 12, 2025 pm 08:57 PM

Do you want to know how to use cookies on your WordPress website? Cookies are useful tools for storing temporary information in users’ browsers. You can use this information to enhance the user experience through personalization and behavioral targeting. In this ultimate guide, we will show you how to set, get, and delete WordPresscookies like a professional. Note: This is an advanced tutorial. It requires you to be proficient in HTML, CSS, WordPress websites and PHP. What are cookies? Cookies are created and stored when users visit websites.

How to Fix WordPress 429 Too Many Request ErrorsHow to Fix WordPress 429 Too Many Request ErrorsMay 12, 2025 pm 08:54 PM

Do you see the "429 too many requests" error on your WordPress website? This error message means that the user is sending too many HTTP requests to the server of your website. This error can be very frustrating because it is difficult to find out what causes the error. In this article, we will show you how to easily fix the "WordPress429TooManyRequests" error. What causes too many requests for WordPress429? The most common cause of the "429TooManyRequests" error is that the user, bot, or script attempts to go to the website

How scalable is WordPress as a CMS for large websites?How scalable is WordPress as a CMS for large websites?May 12, 2025 am 12:08 AM

WordPresscanhandlelargewebsiteswithcarefulplanningandoptimization.1)Usecachingtoreduceserverload.2)Optimizeyourdatabaseregularly.3)ImplementaCDNtodistributecontent.4)Vetpluginsandthemestoavoidconflicts.5)ConsidermanagedWordPresshostingforenhancedperf

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft