Wordpress Dual Header


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.