Forum Replies Created

Viewing 1 replies (of 1 total)
  • I’ve encountered a PHP error which was a result of repeating the “<?php ” in the IF terms, how ever I tries the code below and it worked perfectly!

    <?php
    if (is_page(‘contact’)){
    include(TEMPLATEPATH.’/headercontact.php’);}
    elseif (is_page(‘gallery’)){
    include(TEMPLATEPATH.’/headergallery.php’);}
    else {
    include(TEMPLATEPATH.’/headerdefault.php’);}
    ?>

Viewing 1 replies (of 1 total)