WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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've created a child theme that is a wide version of twenty-ten, and it is working for the most part. But I am struggling to make the header logo wider. You can see the work in progress here at http://7d7d.net

The CSS that is not working is (it still shows as 980px):

#branding {
    margin: 0 auto;
    width: 1140px;

I can see that the generated html for the logo div is:

<div role="banner" id="branding">
    <img width="940" height="198" alt="" 

And that header.php defines the logo like so:

<img src="<?php header_image(); ?>" 
 width="<?php echo HEADER_IMAGE_WIDTH; ?>" 
 height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />

But I can't see where to set HEADER_IMAGE_WIDTH and HEADER_IMAGE_HEIGHT.

The CSS file is here: http://7d7d.net/wp-content/themes/twenty-ten-wide/style.css

share|improve this question
-1 why? its a perfectly valid question – JK01 Jul 24 '11 at 22:26
up vote 3 down vote accepted

in your theme's functions.php, look for this:

// The height and width of your custom header. You can hook into the theme's own filters to change these values.
    // Add a filter to twentyten_header_image_width and twentyten_header_image_height to change these values.
    define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width', 940 ) );
    define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 198 ) );

Its best to creat a child theme, so you don't loose your customization when you next update WP/theme.

share|improve this answer
it already is a child theme, with a style.css file only. I'll try adding a functions.php to the child as well. But in any case changing that value in the twenty-ten functions.php has worked thanks. – JK01 Jul 24 '11 at 22:28

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.