Do not edit the Twenty Eleven theme. It is the default WordPress 3.2 theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. Create a child theme for your changes. Once your child theme is active, we should be able to help with the customisation.
I believe for this theme the changes are made in the functions.php
define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyeleven_header_image_width', 1000 ) );
define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyeleven_header_image_height', 288 ) );
To clarify, I’m using a child theme sorry. So where would I reduce the height?
Have a look at this article.
Beautiful. Thank you esmi! π
I spoke too soon esmi. I’m getting the same errors that are mentioned in your comments.
This is the child theme I’m using: http://futurewebblog.com/add-sidebar-support-posts-twenty-eleven-theme/
This is all I’m getting in the log:
[15-Nov-2011 23:26:06] PHP Parse error: syntax error, unexpected T_STRING in /home/public_html/wp-content/themes/twentyelevenwithsidebar/functions.php on line 5
Would you be willing to download that child theme above to try it?
Drop a copy of that file into the WordPress pastebin and post the pastebin url here. Perhaps someone will be able to spot the problem and suggest a solution.
This is the child theme functions file.
http://pastebin.com/kV6tkmBW
Adding the following throws the error:
function my_header_image_height($height) {
return 150;
}
add filter( ‘twentyeleven_header_image_height’, ‘my_header_image_height’);
We need to see the functions.php file with the new function in it and the error message that you then get.
http://pastebin.com/ctSEtKa5
And the error:
[15-Nov-2011 23:26:06] PHP Parse error: syntax error, unexpected T_STRING in /home/public_html/wp-content/themes/twentyelevenwithsidebar/functions.php on line 5
You’re missing an underscore in add filter
. It should be:
function my_header_image_height($height) {
return 150;
}
add_filter( 'twentyeleven_header_image_height', 'my_header_image_height');
Works now. π My apologies and thank you immensely for your time and efforts!