Title: Adding header code, and using only when needed &#8211; how?
Last modified: January 17, 2017

---

# Adding header code, and using only when needed – how?

 *  [simon_a6](https://wordpress.org/support/users/simon_a6/)
 * (@simon_a6)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/adding-header-code-and-using-only-when-needed-how/)
 * I have put the code into header.php, but it forces the space at the top of all
   pages, whether you have an image in there or not.
 * That said, I have yet to install the plugin. So does the plugin see that you 
   have no image assigned?
 * this looks great to add to a theme like Radiate Pro, where the homepage has a
   parallax image, but the others don’t.

The topic ‘Adding header code, and using only when needed – how?’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-display-header_7f969c.svg)
 * [WP Display Header](https://wordpress.org/plugins/wp-display-header/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-display-header/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-display-header/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-display-header/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-display-header/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-display-header/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [simon_a6](https://wordpress.org/support/users/simon_a6/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/adding-header-code-and-using-only-when-needed-how/)
 * Status: not resolved