Support » Themes and Templates » Different header for seperate page, same blog

Viewing 1 replies (of 1 total)
  • yes…
    And it depends on your theme and design as far as the “how” concerns…

    You can do that based on theme files, custom pages, or a simple IF statement …

    if (is_category()){

    if (is_category(‘1’)){
    <?php include(TEMPLATEPATH.’/header1.jpg’); ?>
    }
    elseif (is_category(‘2’)){
    <?php include(TEMPLATEPATH.’/header2.jpg’); ?>
    }
    else {
    // this is the deafult header
    <?php include(TEMPLATEPATH.’/header3.jpg’); ?>
    }
    }
    ?>

    or

    <?php if (is_front_page()) { ?>
    <div id=”header”> <!– This is actually changing all the DIV” –>
    <?php } else { ?>
    <div id=”<?php echo $post->post_name; ?>”> <!– alternative header DIV is sent, based on the page title –>
    <?php } ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Different header for seperate page, same blog’ is closed to new replies.