Himas Rafeek
Posted on: 1 year ago
CSS

Move and rename “Featured Image” box

Changes the title and moves the featured image box in WordPress admin area. Add this to functions.php


                                          //--------- Change the title and move the Featured Image box ------------ function customposttype_image_box() {
     	remove_meta_box('postimagediv', 'home-page-banners', 'side');
    remove_meta_box('postimagediv', 'page', 'side');
     	add_meta_box('postimagediv', __('Banner Image - The image that appears at the top of the page, size should be 760 x 155 pixels'), 'post_thumbnail_meta_box', 'page', 'normal', 'high');
    add_meta_box('postimagediv', __('Banner Image - 760 x 390 pixels - Bigger images will be cropped automatically.'), 'post_thumbnail_meta_box', 'home-page-banners', 'normal', 'high');
     
}
add_action('do_meta_boxes', 'customposttype_image_box');