How To Change The WordPress ‘Featured Image’ Meta Box Title

July 8th, 2013 - Posted by Steve Marks to PHP, Web Development.

The ‘Featured Image‘ feature in WordPress was introduced in version 3 and is used in pretty much in every site I do. This uploaded image however can be used for multiple reasons (ie. slideshows, carousels, page backgrounds etc) and therefore, the name ‘Featured Image’ might be confusing when passing control of the website content over to the customer.

As a result of the above I often like to rename the ‘Featured Image’ meta box to be specific to it’s purpose. For example, let’s imagine the featured image we upload is actually going to become the page background. By default the box looks like this:


Now let’s imagine we want to rename the title of this box to be more relevant and to read ‘Page Background Image’. We can do this in our functions.php file by adding the following:

add_action('do_meta_boxes', 'replace_featured_image_box');
function replace_featured_image_box()
    remove_meta_box( 'postimagediv', 'page', 'side' );
    add_meta_box('postimagediv', __('Page Background Image'), 'post_thumbnail_meta_box', 'page', 'side', 'low');

In the above snippet of PHP we are removing the current ‘Featured Image’ meta box, then creating a new one with the same id to replace it. Notice that in this example I am only doing this for pages. To do it for posts or custom post types simply change the parameters set to ‘page’ in the example.

Now our ‘Featured Image’ meta box should look something like so:


Tags: ,
This entry was posted on Monday, July 8th, 2013 at 8:42 am by +Steve Marks and is filed under PHP, Web Development. You can follow any responses to this entry through the RSS 2.0 feed.

Fear not, we won't publish this

Comments (1)
  1. thanks a lot , i like it for cpt in wp ;)