{"id":2792,"date":"2024-02-02T21:20:23","date_gmt":"2024-02-02T21:20:23","guid":{"rendered":"https:\/\/wpconsults.com\/?p=2792"},"modified":"2026-06-30T19:49:15","modified_gmt":"2026-06-30T19:49:15","slug":"comment-modifier-la-taille-de-limage-vedette-dans-wordpress","status":"publish","type":"post","link":"https:\/\/www.wpconsults.com\/fr\/how-to-change-featured-image-size-in-wordpress\/","title":{"rendered":"How to Change Featured Image Size in WordPress"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Changing the featured image size in WordPress trips people up because the obvious place to look, Settings then Media, does not actually control the featured image. The featured image size is set by your theme, so changing it for real means registering a new size in code and then telling your theme to use it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I will walk you through the proper way to do it with <code>add_image_size()<\/code>, when a plugin is the easier route, and the step almost everyone forgets: regenerating thumbnails so your existing images actually update.<\/p>\n\n\n\n<div class=\"wp-block-group wpc-takeaways is-layout-flow wp-block-group-is-layout-flow\">\n<h3 class=\"wp-block-heading\">Principaux enseignements<\/h3>\n<ul class=\"wp-block-list\"><li><strong>Settings &gt; Media does not change the featured image<\/strong>; it only controls the thumbnail, medium, and large sizes.<\/li><li><strong>Register a custom size with <code>add_image_size()<\/code><\/strong> in your theme&#8217;s functions.php, then display it with <code>the_post_thumbnail()<\/code>.<\/li><li>Le <strong>crop parameter<\/strong> decides everything: <code>vrai<\/code> hard-crops to the exact dimensions, <code>faux<\/code> keeps the original ratio.<\/li><li><strong>Regenerate thumbnails after any change<\/strong>, or only newly uploaded images will use the new size.<\/li><li>On a block (full-site-editing) theme there is no single.php; you set the featured image size in the Site Editor template instead.<\/li><li>If you would rather not touch code, a plugin can register and apply sizes for you.<\/li><\/ul>\n<\/div>\n\n\n<style>.kb-table-of-content-nav.kb-table-of-content-id7066_f7400a-9c .kb-table-of-content-wrap{padding-top:var(--global-kb-spacing-sm, 1.5rem);padding-right:var(--global-kb-spacing-sm, 1.5rem);padding-bottom:var(--global-kb-spacing-sm, 1.5rem);padding-left:var(--global-kb-spacing-sm, 1.5rem);border-top:1px solid var(--global-palette10, #3182CE);border-right:1px solid var(--global-palette10, #3182CE);border-bottom:1px solid var(--global-palette10, #3182CE);border-left:1px solid var(--global-palette10, #3182CE);border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;box-shadow:15px 15px 0px 0px rgba(160, 152, 255, 0.31);}.kb-table-of-content-nav.kb-table-of-content-id7066_f7400a-9c .kb-table-of-contents-title-wrap{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.kb-table-of-content-nav.kb-table-of-content-id7066_f7400a-9c .kb-table-of-contents-title{font-weight:regular;font-style:normal;}.kb-table-of-content-nav.kb-table-of-content-id7066_f7400a-9c .kb-table-of-content-wrap .kb-table-of-content-list{color:var(--global-palette1, #3182CE);font-weight:regular;font-style:normal;margin-top:var(--global-kb-spacing-sm, 1.5rem);margin-right:0px;margin-bottom:0px;margin-left:0px;}@media all and (max-width: 1024px){.kb-table-of-content-nav.kb-table-of-content-id7066_f7400a-9c .kb-table-of-content-wrap{border-top:1px solid var(--global-palette10, #3182CE);border-right:1px solid var(--global-palette10, #3182CE);border-bottom:1px solid var(--global-palette10, #3182CE);border-left:1px solid var(--global-palette10, #3182CE);}}@media all and (max-width: 767px){.kb-table-of-content-nav.kb-table-of-content-id7066_f7400a-9c .kb-table-of-content-wrap{border-top:1px solid var(--global-palette10, #3182CE);border-right:1px solid var(--global-palette10, #3182CE);border-bottom:1px solid var(--global-palette10, #3182CE);border-left:1px solid var(--global-palette10, #3182CE);}}<\/style>\n\n\n<h2 class=\"wp-block-heading\">First, know what each setting actually controls<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The reason this feels confusing is that there are two different things called &#8220;image size&#8221; in WordPress. Settings then Media controls the three default sizes WordPress generates (thumbnail, medium, large), which your content images use. The featured image, though, is displayed by your theme at whatever size the theme registered, so editing the Media settings often changes nothing visible on your featured images.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you only want to understand which dimensions to aim for in the first place, I covered that in the companion guide on the <a href=\"https:\/\/www.wpconsults.com\/fr\/taille-de-limage-vedette-dans-wordpress-2\/\">featured image size in WordPress<\/a>. This post is about actually changing it.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Method<\/th><th>What it changes<\/th><th>Id\u00e9al pour<\/th><\/tr><\/thead><tbody><tr><td>R\u00e9glages &gt; M\u00e9dias<\/td><td>Default thumbnail, medium, large sizes<\/td><td>Content images, quick tweaks<\/td><\/tr><tr><td>add_image_size() in functions.php<\/td><td>A new custom size for the featured image<\/td><td>A precise, theme-wide featured size<\/td><\/tr><tr><td>Theme or Site Editor settings<\/td><td>How the active theme displays the thumbnail<\/td><td>Block themes and page builders<\/td><\/tr><tr><td>A dedicated plugin<\/td><td>Registers and applies sizes for you<\/td><td>Avoiding code entirely<\/td><\/tr><\/tbody><\/table><figcaption>The four ways to influence featured image size and what each one actually affects, so you change the right setting.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Register a custom size in functions.php<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Add a new image size in your theme&#8217;s functions.php (use a child theme so an update does not wipe it). This tells WordPress to generate that size for every new upload. The function is documented in the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/add_image_size\/\" rel=\"nofollow noopener\" target=\"_blank\">WordPress developer reference<\/a>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_image_size( 'featured-large', 1200, 675, true );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That last parameter is the one that matters most. With <code>vrai<\/code>, WordPress hard-crops the image to exactly 1200 by 675, so it always fills the frame but may trim the edges. With <code>faux<\/code>, it scales the image to fit within those bounds and keeps the original aspect ratio, so nothing is cut but the dimensions are not guaranteed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Display the new size in your template<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Registering the size is only half the job; you also have to tell the theme to use it. In a classic theme, find where the featured image is output (often single.php) and pass your new size name to <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/the_post_thumbnail\/\" rel=\"nofollow noopener\" target=\"_blank\"><code>the_post_thumbnail()<\/code><\/a>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>the_post_thumbnail( 'featured-large' );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">On a modern block theme there is no single.php to edit. Instead, open Appearance then Editor, edit the single-post template, select the Featured Image block, and set its dimensions there. It is the same idea, just done visually rather than in PHP.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Regenerate your existing thumbnails<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the step people miss. A new registered size only applies to images uploaded after you added it, so your existing featured images will still use their old dimensions. To apply the new size to everything already in your media library, regenerate the thumbnails.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The simplest route is the free <a href=\"https:\/\/wordpress.org\/plugins\/regenerate-thumbnails\/\" rel=\"nofollow noopener\" target=\"_blank\">R\u00e9g\u00e9n\u00e9rer les vignettes<\/a> plugin, which rebuilds all sizes in a couple of clicks. If you prefer the command line, <code>wp media regenerate<\/code> via WP-CLI does the same job without a plugin, which fits nicely if you are keeping the build lean.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prefer not to touch code?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The code method gives you the most precise control, and I lean on it for client sites. That said, if you are not comfortable editing functions.php, a featured-image or image-size plugin can register and apply a custom size from a settings screen, and for a one-off change that is a perfectly reasonable trade. Just remember it is one more plugin to keep updated, so I only reach for it when code is genuinely off the table.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">So what is the cleanest way to change it?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If this were my site, I would register the size with <code>add_image_size()<\/code>, call it in the template, and then regenerate thumbnails, because that gives a consistent featured size across every post with no extra plugin running in the background. It is three steps, but they are the steps that actually stick.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Reach for a plugin only if editing code is off the table for you, and whichever path you choose, do not skip the regeneration step, since that is the one that makes the change show up on the posts you already published.<\/p>\n\n\n\n<div class=\"wp-block-group wpc-changelog is-layout-flow wp-block-group-is-layout-flow\" id=\"article-update-logs\">\n<h2 class=\"wp-block-heading\">Journal des mises \u00e0 jour<\/h2>\n<p class=\"wp-block-paragraph\"><strong>01 Jul 2026<\/strong><\/p>\n<ul class=\"wp-block-list\"><li>Reworked into a clear three-step method (register, display, regenerate), added the Settings &gt; Media misconception, block-theme Site Editor instructions, and a WP-CLI alternative to the plugin.<\/li><\/ul>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>To change the featured image size in WordPress, register a size with add_image_size in functions.php, call it in your template, then regenerate thumbnails for old images.<\/p>","protected":false},"author":1,"featured_media":7384,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kb_optimizer_status":0,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","rank_math_title":"How to Change Featured Image Size in WordPress","rank_math_description":"How to change featured image size in WordPress: register a custom size with add_image_size, call it in your template, and regenerate existing thumbnails.","rank_math_focus_keyword":"how to change featured image size in wordpress","_colophon_preset":"regular","_colophon_fc_on":"","_colophon_edited_on":"","footnotes":""},"categories":[7],"tags":[64],"class_list":["post-2792","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-tips-tutorials","tag-without-plugin-series"],"_links":{"self":[{"href":"https:\/\/www.wpconsults.com\/fr\/wp-json\/wp\/v2\/posts\/2792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpconsults.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wpconsults.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wpconsults.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wpconsults.com\/fr\/wp-json\/wp\/v2\/comments?post=2792"}],"version-history":[{"count":2,"href":"https:\/\/www.wpconsults.com\/fr\/wp-json\/wp\/v2\/posts\/2792\/revisions"}],"predecessor-version":[{"id":7385,"href":"https:\/\/www.wpconsults.com\/fr\/wp-json\/wp\/v2\/posts\/2792\/revisions\/7385"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wpconsults.com\/fr\/wp-json\/wp\/v2\/media\/7384"}],"wp:attachment":[{"href":"https:\/\/www.wpconsults.com\/fr\/wp-json\/wp\/v2\/media?parent=2792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wpconsults.com\/fr\/wp-json\/wp\/v2\/categories?post=2792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wpconsults.com\/fr\/wp-json\/wp\/v2\/tags?post=2792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}