Title: Remove headers from sub pages
Last modified: September 14, 2017

---

# Remove headers from sub pages

 *  [blackessej](https://wordpress.org/support/users/blackessej/)
 * (@blackessej)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/remove-headers-from-sub-pages/)
 * I want the header image to show up on the home page only. I think I need to edit
   this bit in the theme_header.php file:
 * <?php $header_image = get_header_image(); ?>
 * <?php if ( ! is_page() || is_home() || is_page() && ! has_post_thumbnail() ) {?
   >
    <?php if ( ‘blank’ != get_theme_mod( ‘header_textcolor’ ) || ! empty( $header_image)){?
   >
 * Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremove-headers-from-sub-pages%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Theme Author [Organic Themes](https://wordpress.org/support/users/organicthemes/)
 * (@organicthemes)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/remove-headers-from-sub-pages/#post-9501521)
 * Hello,
 * Change the following code from this:
 * `<?php if ( ! is_page() || is_home() || is_page() && ! has_post_thumbnail() ){?
   >`
 * To this:
 * `<?php if ( is_home() || is_home() && is_front_page() ) { ?>`
 * That should do the trick. Thanks!
 * David
 *  Thread Starter [blackessej](https://wordpress.org/support/users/blackessej/)
 * (@blackessej)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/remove-headers-from-sub-pages/#post-9502564)
 * Thank you! Close! This worked:
 * <?php if ( ! is_page() || is_home() || is_page() && is_front_page() ) { ?>

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove headers from sub pages’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/givingpress-lite/1.8.6/screenshot.
   png)
 * GivingPress Lite
 * [Support Threads](https://wordpress.org/support/theme/givingpress-lite/)
 * [Active Topics](https://wordpress.org/support/theme/givingpress-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/givingpress-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/givingpress-lite/reviews/)

## Tags

 * [header](https://wordpress.org/support/topic-tag/header/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 2 replies
 * 2 participants
 * Last reply from: [blackessej](https://wordpress.org/support/users/blackessej/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/remove-headers-from-sub-pages/#post-9502564)
 * Status: not resolved