Remove Header Image from WordPress 3 Twenty Ten Theme
How to remove the header Image which is displayed just below the Title & Description of the Blog.
Click on Appearance under the Wp-Admin > Editor > Header (header.php) and search for the following code and remove it.
<?php
// Check if this is a post or page, if it has a thumbnail, and if it's a big one
if ( is_singular() &&
has_post_thumbnail( $post->ID ) &&
( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
$image[1] >= HEADER_IMAGE_WIDTH ) :
// Houston, we have a new header image!
echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
else : ?>
<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
<?php endif; ?>
Incoming search terms:
- wordpress remove header image
- delete wordpress header image
- wordpress how to remove header image
- delete header image wordpress twenty ten
- remove header from post wordpress 3
- remove header images admin wordpress
- remove image wordpress twentyten
- removing wordpress header image
- twenty ten wordpress remove header image
- wordpress remove image in header



thank you…
bit by tiny bit…i get there……
with blogs like this!
If I remove the above code, the entire site gets misaligned.
Its also interested that if I try to comment it out I get an error so you have to remove the code.
Did you get the same result when you removed this code?
Jay
Thanks for posting this tip you’ve saved me from having to learn php properly !