×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Riccardo di Biase
Added: Mar 15, 2013 10:59 PM
Views: 20
Tags: wordpress
The file names for the home and 404 headers should be header-home.php and header-404.php respectively.
  1. <?php
  2. if ( is_home() ) :
  3.   get_header('home');
  4. elseif ( is_404() ) :
  5.   get_header('404');
  6. else :
  7.   get_header();
  8. endif;
  9. ?>