WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I don't see in my custom theme any option for uploading the header image (although there is a code for it in the header)
Do I need to register it somehow?

Also, I have a specific size I want to implement, is it possible to hard-crop the header image on upload? (I want it to be cropped, not resized with CSS)

Solution I found:

I used custom_header_support

$custom_header_support = array(
    'width' => 260,
    'height' => 300,
    'header-text' => false,

add_theme_support( 'custom-header', $custom_header_support );
share|improve this question
Re: uploading header in custom theme: what code do you have? :::::: Re: hard crop: are there so many header images? Why don't you crop it in Photoshop? – brasofilo Jul 1 '12 at 20:09

I think you can do that by adding the function add_image_size in your functions.php file of the theme folder.

Read more on how to add add_image_size here: http://codex.wordpress.org/Function_Reference/add_image_size

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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