Remove Header Image from WordPress 3 Twenty Ten Theme

Published by Amit Bhawani on June 18, 2010 – 5:24 am3 Comments

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
We will send you some more information related to Remove Header Image from WordPress 3 Twenty Ten Theme. Enter your email address : Bookmark and Share

3 Comments »

  • gillian morrison says:

    thank you…

    bit by tiny bit…i get there……

    with blogs like this!

  • Jay says:

    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

  • dan says:

    Thanks for posting this tip you’ve saved me from having to learn php properly !

Leave a comment!

Be nice. Keep it clean. Stay on topic. No spam.