Posted By

gera3d on 07/13/10


Tagged

wordpress


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

lanceosborne
mikoli


Wordpress Dual Header


 / Published in: PHP
 

This was used to accomplish a deferent background on a secondary page within the website.

  1. <?php
  2.  
  3. if (is_page(Home)) {
  4.  
  5. include(TEMPLATEPATH.'/header.php');
  6.  
  7. } elseif (is_page(Menu)) {
  8.  
  9. include(TEMPLATEPATH.'/header-second.php');
  10.  
  11. } else {
  12.  
  13. include(TEMPLATEPATH.'/header-second.php');
  14. }
  15. ?>

Report this snippet  

You need to login to post a comment.