I'm using WP 3.5 for a CMS for one of our clients. I need to have a bigger header image than 940 × 250 pixels, so I changed width and height parameters, but when I try to upload a new image, it still asks me to crop it. What am I doing wrong?

    $settings = array(
    'width'                  => 1700,
    'height'                 => 300,
    'flex-height'            => true,
    'flex-width'             => true,
    'header-text'            => false,
    'uploads'                => true,
add_theme_support( 'custom-header', $settings );
  • What theme are you using? – Eckstein Jun 17 '13 at 7:02

If you're using Twenty Eleven, just add this to your functions.php file and you should be good to go:

remove_filter( 'HEADER_IMAGE_WIDTH', 'twentyeleven_header_image_width' );
remove_filter( 'HEADER_IMAGE_HEIGHT', 'twentyeleven_header_image_height' );
define( 'HEADER_IMAGE_WIDTH', apply_filters( 'child_header_image_width', 1700) );
define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'child_header_image_height', 300) );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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