Title: Header changes with conditionals
Last modified: August 19, 2016

---

# Header changes with conditionals

 *  [nuffnuff](https://wordpress.org/support/users/nuffnuff/)
 * (@nuffnuff)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/header-changes-with-conditionals/)
 * Hey,
 * Searched fairly thoroughly to find someone who had the same problem but couldn’t.
   I’m using wordpress with comic press.
 * fist off, [here](http://www.patgrantart.com/) is the link to the site ( [http://www.patgrantart.com](http://www.patgrantart.com))
 * What I want to do is configure the blog so that a large banner comes up on the
   home page sitting perfectly on top of a nice rack of animated buttons that I 
   built. I have that set up nicely right now
 * Banner is [here](http://www.patgrantart.com/wp-content/themes/comicpress/banner.jpg).
 * The thing is I don’t need the banner on every page. I only want it on the home
   page because my site visitors don’t need to see it more than once. I have made
   an alternative image to replace the banner which sits nicely on the top of my
   button rack which I will hopefully have in place of the banner on every other
   page.
 * The alternative banner image is [here](http://www.patgrantart.com/wp-content/themes/comicpress/headerhead.jpg)
 * So. I’ve been trying to write some conditional tags into the header sheet but
   every time I do I break the code.
 * here’s what I tried
 *     ```
       <?php
       if (is_home())
          { echo "<img src="http://www.patgrantart.com/wp-content/themes/comicpress/banner.jpg">"; }
       else { echo "<img src="http://www.patgrantart.com/wp-content/themes/comicpress/banner.jpg">";
       }
       ?>
       ```
   
 * i dropped this in right after the opening of the ‘header’ div.
 * I also tried replacing the echo “<img src?” thing with ‘bannerimg=’
 * that didn’t work either.
 * anyway. any input would be appreciated.
 * Regards, Pat

Viewing 1 replies (of 1 total)

 *  Thread Starter [nuffnuff](https://wordpress.org/support/users/nuffnuff/)
 * (@nuffnuff)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/header-changes-with-conditionals/#post-744348)
 * BUMP!

Viewing 1 replies (of 1 total)

The topic ‘Header changes with conditionals’ is closed to new replies.

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [nuffnuff](https://wordpress.org/support/users/nuffnuff/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/header-changes-with-conditionals/#post-744348)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
