1

How do you add instructions to the featured image field (see attached screenshot) - something like: "recommended dimensions - H980px by W450px"..?

screenshot of featured image without instructions

2
  • Looks like this is possible but requires a bit of cide, are you able to edit your functions.php or setup a new plugin to do this?
    – mozboz
    Commented Jul 6, 2020 at 12:10
  • @mozboz yes, I can edit my functions.php file
    – jeno
    Commented Jul 6, 2020 at 13:28

1 Answer 1

3

Wordpress has a hook for that. Here is a sample code:

function featured_image_dimensions( $content, $post_id, $thumbnail_id ){
    $help_text = '<p>' . __( 'recommended dimensions - H980px by W450px', 'my_domain' ) . '</p>';
    return $help_text . $content;
}
add_filter( 'admin_post_thumbnail_html', 'featured_image_dimensions', 10, 3 );

Add this code to your functions.php and you should be good to go.

1
  • thank you so much... this helped.
    – jeno
    Commented Jul 6, 2020 at 15:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.