Title: Header.php
Last modified: August 19, 2016

---

# Header.php

 *  [mcnaircreative](https://wordpress.org/support/users/mcnaircreative/)
 * (@mcnaircreative)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/headerphp-6/)
 * I have a wordpress sitewhere I have edited the header to include icon links for
   facebook, twitter, feed, Youtube. These links only appear on the home page. How
   do I make these links universal to every page? Below is the code.
 * </style>
 * <?php wp_head(); ?>
    </head> <body>
 * <div id=”head”>
    <!– begin pages –> <div id=”menu”> <ul id=”nav”>
 *  <?php wp_list_pages(‘title_li=&depth=2&sort_column=menu_order’); ?>
    - [<img src=”twitter_logo.png” width=”26″ height=”26″ border=”0″ id=”Image1″ onmouseover=”MM_swapImage(‘Image1′,”,’twitter_logo_over.png’,1)” onmouseout=”MM_swapImgRestore()” />](http://twitter.com/BellaSani)
    - [<img src=”facebook_logo.png” width=”24″ height=”24″ border=”0″ id=”Image2″ onmouseover=”MM_swapImage(‘Image2′,”,’facebook_logo-over.png’,1)” onmouseout=”MM_swapImgRestore()” />](http://www.facebook.com/profile.php?id=100000166882079)
    - [<img src=”youtube-logo.png” width=”63″ height=”26″ border=”0″ id=”Image3″ onmouseover=”MM_swapImage(‘Image3′,”,’youtube-logo_over.png’,1)” onmouseout=”MM_swapImgRestore()” />](http://www.youtube.com/bellasanicouture)
    - [<img src=”feed-icon-2.png” width=”24″ height=”24″ border=”0″ id=”Image4″ onmouseover=”MM_swapImage(‘Image4′,”,’feed-icon-2_over.png’,1)” onmouseout=”MM_swapImgRestore()” />](http://bellasanicouture.com/feed/)
    -  </div>
       <!– end pages –> </div> <div id=”container”> <div id=”header”> <?
      php global $options; foreach ($options as $value) { if (get_settings( $value[‘
      id’] ) === FALSE) { $$value[‘id’] = $value[‘std’]; } else { $$value[‘id’] 
      = get_settings( $value[‘id’] ); } }?> <h1>/”><?php if($pov_lysalogo) { ?><
      img src=”<?php echo $pov_lysalogo;?>” alt=”Go Home”/><?php } else { bloginfo(‘
      name’); } ?> </h1>
    -  <?php if ($pov_desc == “true”) { } else { ?><?php } ?>
    - </div>

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

 *  [thewaste](https://wordpress.org/support/users/thewaste/)
 * (@thewaste)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/headerphp-6/#post-1545198)
 * Your header content (in header.php) should be the same on all pages. Make sure
   you are adding this source code on the header.php file.
 * Check your source code to see if the code for the nav links are appearing on 
   other pages. If they are not, try some simple text in the header.php.
 *  [Chinmoy](https://wordpress.org/support/users/chinmoy/)
 * (@chinmoy)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/headerphp-6/#post-1545199)
 * [@mcnaircreative](https://wordpress.org/support/users/mcnaircreative/)
 * Write this code in your header.php file:
 *     ```
       <?php
       if (is_home()) :
       ?>
       # <img src="twitter_logo.png" width="26" height="26" border="0" id="Image1" onmouseover="MM_swapImage('Image1','','twitter_logo_over.png',1)" onmouseout="MM_swapImgRestore()" />
       #
       # <img src="facebook_logo.png" width="24" height="24" border="0" id="Image2" onmouseover="MM_swapImage('Image2','','facebook_logo-over.png',1)" onmouseout="MM_swapImgRestore()" />
       # <img src="youtube-logo.png" width="63" height="26" border="0" id="Image3" onmouseover="MM_swapImage('Image3','','youtube-logo_over.png',1)" onmouseout="MM_swapImgRestore()" />
       # <img src="feed-icon-2.png" width="24" height="24" border="0" id="Image4" onmouseover="MM_swapImage('Image4','','feed-icon-2_over.png',1)" onmouseout="MM_swapImgRestore()" />
       <?php endif;?>
       ```
   

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

The topic ‘Header.php’ is closed to new replies.

 * 2 replies
 * 3 participants
 * Last reply from: [Chinmoy](https://wordpress.org/support/users/chinmoy/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/headerphp-6/#post-1545199)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
