Different header image for different page and category (2 posts)

  1. limecity
    Posted 5 years ago #

    Initially, i successfully implemented this code which enable
    if its HOME, then show image X
    Else show image Y for the rest of the page.

    <?php if ( is_home() || is_front_page() ) : ?>
    <div id="header"> <a href="<?php bloginfo('siteurl'); ?>">
      <div class="logo"></div>
      <!--end: logo-->
    <?php else: ?>
       <div id="header2"> <a href="<?php bloginfo('siteurl'); ?>">
       	<div class="logo2">    </div>
      <!--end: logo-->
                <?php endif ?>

    So what I need to do now is having
    different header image for HOME, pages and category.
    I saw few of the codex, but I have no idea how to mix them together. it wouldn't work.

    please help.

  2. Emil Uzelac
    Theme Review Admin
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic