custom header error
-
Hi and thanks in advance.
So I am trying to set up my site so that each page has a different header image; I used this method:
https://www.wprecipes.com/how-to-use-multiple-custom-headers-on-a-wordpress-themeMy version of that header file looks like this:
<?php if (is_page('editing')){ <?php include(TEMPLATEPATH.'/wp-content/themes/sandbox/headerediting.php'); ?> } elseif (is_page('writing')){ <?php include(TEMPLATEPATH.'/wp-content/themes/sandbox/headerwriting.php'); ?> } elseif (is_page('about-me')){ <?php include(TEMPLATEPATH.'/wp-content/themes/sandbox/headeraboutme.php'); ?> } elseif (is_page('contact')){ <?php include(TEMPLATEPATH.'/wp-content/themes/sandbox/headercontact.php'); ?> } else { <?php include(TEMPLATEPATH.'/wp-content/themes/sandbox/headerdefault.php'); ?> } ?>
I created the corresponding .php header pages that I reference in there, only when I replace the default header file with the one I created I get this error:
Parse error: syntax error, unexpected ‘<‘ in /home7/mayerack/public_html/jenniferacker/wp-content/themes/sandbox/header.php on line 3
Does anyone have a clue what is going on? I don’t know which “<” would be “unexpected”, and I got this set up from that website I linked to above and it seems from the comments on there that other people used it with no problem.
- The topic ‘custom header error’ is closed to new replies.