Title: Header in Static Pages
Last modified: August 22, 2016

---

# Header in Static Pages

 *  [yagomosquera](https://wordpress.org/support/users/yagomosquera/)
 * (@yagomosquera)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/header-in-static-pages/)
 * Hi, I recently started using WordPress and I am starting to understand it yet.
   I am creating an ecommerce site and need some advice.
 * The index is an static page, I managed to put the header image on static pages
   using this code.
 *     ```
       <?php if ( $woo_options[ 'woo_homepage_banner' ] == "true" ) { ?>
   
           	<div class="homepage-banner">
           		<?php
       				if ( $woo_options[ 'woo_homepage_banner' ] == "true" ) { $banner = $woo_options['woo_homepage_banner_path']; }
       				if ( $woo_options[ 'woo_homepage_banner' ] == "true" && is_ssl() ) { $banner = preg_replace("/^http:/", "https:", $woo_options['woo_homepage_banner_path']); }
       			?>
       			    <img src="<?php echo $banner; ?>" alt="" />
           		<h1><span><?php echo $woo_options['woo_homepage_banner_headline']; ?></span></h1>
           		<div class="description"><?php echo wpautop($woo_options['woo_homepage_banner_standfirst']); ?></div>
           	</div>
   
           <?php } ?>
       ```
   
 * However I would like to remove this header in other static pages. How could I
   do this without removing it on the index page, which is an static page?
 * Thanks in advance!

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

 *  [Aaron Hockley](https://wordpress.org/support/users/ahockley/)
 * (@ahockley)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/header-in-static-pages/#post-5457568)
 * If you have content that you only one to show on the site’s homepage (regardless
   of whether it’s a post or a page), you can use the function is_front_page():
 * [http://codex.wordpress.org/Function_Reference/is_front_page](http://codex.wordpress.org/Function_Reference/is_front_page)
 *  Thread Starter [yagomosquera](https://wordpress.org/support/users/yagomosquera/)
 * (@yagomosquera)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/header-in-static-pages/#post-5457597)
 * That is not the case, I would like to change the header’s image on each page,
   is that possible?
 *  [Aaron Hockley](https://wordpress.org/support/users/ahockley/)
 * (@ahockley)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/header-in-static-pages/#post-5457665)
 * If you’d like a unique header image on each page, that seems like a potentially
   good use for the Featured Image option in WordPress.
 * The theme would need to read the featured image for each page, then display that
   image as the page’s header.

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

 The topic ‘Header in Static Pages’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Aaron Hockley](https://wordpress.org/support/users/ahockley/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/header-in-static-pages/#post-5457665)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
