Support » Fixing WordPress » Multiple Headers: PARSE ERROR

  • Resolved jonhebert


    Hi all, I’m trying to put multiple headers on my WP site, but I’m getting a parse error. Homepage is set to “static page.” I want one header for Homepage, and another for all other pages and blog. (None of the code below is implemented on the site right now, as I need the site accessible. In other words you will not see the parse error.)

    Site is at:

    Code I’m using that is giving error:

    if (is_page('home')){
    	<?php include(TEMPLATEPATH.'/headerhome.php'); ?>
    else {
    	<?php include(TEMPLATEPATH.'/headerdefault.php'); ?>

    I tried substituting “is_page” with “is_home” and “is_front_page” but they all give me the error.

    I know it’s something simple, what am I missing? I’m not a PHP person, but I know just enough to be dangerous.


Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multiple Headers: PARSE ERROR’ is closed to new replies.