Title: differnent header code for each page
Last modified: August 21, 2016

---

# differnent header code for each page

 *  Resolved [curthayman](https://wordpress.org/support/users/curthayman/)
 * (@curthayman)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/differnent-header-code-for-each-page/)
 * I am trying to make the header code show up differently on one certain page. 
   But everything else should show up as you see is_front_page code. Any ideas?
 * Thanks!!
 *     ```
       <?php if( is_home() || is_front_page() ) : ?>
       <img src="<?php echo $hdr ?>" width="<?php echo $weaverii_header['width']; ?>" height="<?php echo  $weaverii_header['height']; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" />
       <?php elseif is_page( 131 ) : ?>
       <img src="" />
       <?php endif; ?>
       ```
   
 * _[Moderator Note: Please post code & markup between backticks (not single quotes)
   or use the code button. Your posted code may now have been permanently damaged
   by the forum’s parser.]_

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

 *  Thread Starter [curthayman](https://wordpress.org/support/users/curthayman/)
 * (@curthayman)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/differnent-header-code-for-each-page/#post-4329529)
 * Sorry misspelling in subject and the backticks didn’t work as well. 🙁
 *  Thread Starter [curthayman](https://wordpress.org/support/users/curthayman/)
 * (@curthayman)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/differnent-header-code-for-each-page/#post-4329531)
 * Here it is updated with backticks
 *     ```
       <?php if( is_home() || is_front_page() ) : ?>
       <img src="<?php echo $hdr ?>" width="<?php echo $weaverii_header['width']; ?>" height="<?php echo $weaverii_header['height']; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" />
       <?php elseif is_page( 131 ) : ?>
       <img src="" />
       <?php endif; ?>
       ```
   
 *  Thread Starter [curthayman](https://wordpress.org/support/users/curthayman/)
 * (@curthayman)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/differnent-header-code-for-each-page/#post-4329559)
 * Never mind I figured it out now!!!

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

The topic ‘differnent header code for each page’ is closed to new replies.

## Tags

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

 * 3 replies
 * 1 participant
 * Last reply from: [curthayman](https://wordpress.org/support/users/curthayman/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/differnent-header-code-for-each-page/#post-4329559)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
