Title: Different headers
Last modified: August 19, 2016

---

# Different headers

 *  [monster1221](https://wordpress.org/support/users/monster1221/)
 * (@monster1221)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/different-headers-1/)
 * Hi all,
    So I found some information on the forums about how to change the header
   with each page and I am having trouble getting it to work. So I put this in the
   header.php file under the header div. I can’t for the life of me get it to work.
   I have the image in the right place etc. <?php if(is_page(’67’)){ echo ‘<img 
   src=”images/header-2.jpg” />’; } ?>
 * here is my header code
    <?php bloginfo(‘name’); ?>
 * <?php wp_title(); ?>
    </title> <meta http-equiv=”Content-Type” content=”<?php
   bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” /> <meta name
   =”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this
   for stats please –> <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’);?
   >” type=”text/css” media=”screen” /> <link rel=”alternate” type=”application/
   rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” /> <link rel=”
   alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?
   >” /> <link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href
   =”<?php bloginfo(‘atom_url’); ?>” /> <link rel=”pingback” href=”<?php bloginfo(‘
   pingback_url’); ?>” /> <script language=”javascript” src=”date.js” type=”text/
   javascript”></script> <?php wp_get_archives(‘type=monthly&format=link’); ?> <?
   php //comments_popup_script(); // off by default ?> <?php wp_head(); ?>
 * </head>
    <body> <div id=”wraper”> <div id=”header”>
 * 
    </div> <!–<div id=”searchbox”> <form method=”get” id=”searchform” action=”<?
   php bloginfo(‘url’); ?>/”> <div style=”float:left”><input type=”text” value=”
   <?php the_search_query(); ?>” name=”s” class=”search” id=”s” style=”padding-left:
   8px; border:1px solid #000000″/> </div><div style=”float:right”> <input type=”
   image” class=”find” id=”searchsubmit” value=”” src=”<?php bloginfo(‘stylesheet_directory’);?
   >/images/btn-search.jpg” /></div> </form> </div>–> <div class=”navigation”>
    -  <?php wp_list_pages(‘depth=1&title_li=’); ?>
 *  </div>
    </div> <div id=”img”>
 * </div>
 * <div>
    <div id=”container”>

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/different-headers-1/#post-1332417)
 * try:
 *     ```
       echo '<img src="'.get_bloginfo('template_url').'/images/header-2.jpg" />';
       ```
   
 * (the relative image path only works from within style.css)
 *  Thread Starter [monster1221](https://wordpress.org/support/users/monster1221/)
 * (@monster1221)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/different-headers-1/#post-1332419)
 * hmmm tried that
    like so: <?php if(is_page(’67’)){ echo ‘<img src=”‘.get_bloginfo(‘
   template_url’).’/images/header-2.jpg” />’; } ?>
 * i put it in the head div tag. still no worky work.
 *  Thread Starter [monster1221](https://wordpress.org/support/users/monster1221/)
 * (@monster1221)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/different-headers-1/#post-1332421)
 * AHAH it does work!! TY TY!
    happy new year 🙂

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

The topic ‘Different headers’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [monster1221](https://wordpress.org/support/users/monster1221/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/different-headers-1/#post-1332421)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
