Move and rename "Featured Image" box


/ Published in: CSS
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. //--------- Change the title and move the Featured Image box ------------
  2.  
  3. function customposttype_image_box() {
  4.  
  5. remove_meta_box('postimagediv', 'home-page-banners', 'side');
  6. remove_meta_box('postimagediv', 'page', 'side');
  7.  
  8. 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');
  9. 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');
  10.  
  11. }
  12. add_action('do_meta_boxes', 'customposttype_image_box');

URL: http://wordpress.org/support/topic/move-and-rename-featured-image-box

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.