View Single Post
Old 02-28-2012, 11:12 AM  
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
I'm not 100% sure what do you mean, anyway, if you're using 2 headers (is that what you mean?) then you need to require the correct header, like this:

Code:
<?php include(TEMPLATEPATH.'/header2.php'); ?>
however, to avoid mistakes, juts use conditionals. Replace EVERYTHING you have in header.php with something like this:

Code:
<?php
if (is_front_page()){
	<?php include(TEMPLATEPATH.'/mainheader.php'); ?>
}
elseif (is_single()){
	<?php include(TEMPLATEPATH.'/header-single.php'); ?>
}
else {
	<?php include(TEMPLATEPATH.'/header1.php'); ?>
}
?>
this code will allow you to use 1 header for your main static page, a different one for single pages (if you need it) and everything else (such as pages) will use a default header. Play with it as you wish
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote