So I have created my own template that has a set header for all of my pages home (which is a static front page), about, services, contact, etc....
I have recently created two newer pages products and blog. Products is using CataBlog to list my products and their information so I don't want the same header that I have used on the content pages. This also holds true for the blog page.
I went into my header.php file and did the following:
<?php if (is_page('blog')) { ?> <div id="header"> <h1>hi</h1> <?php } if (is_page('product')) { ?> <div id="header"> <h1>hi</h1> <?php } else {?> <div id="header"> <div id="slider"> <ul> <li><img src="<?php bloginfo('stylesheet_directory') ?>/images/01.jpg" alt="Pawtucket Pawnbrokers" /></li> <li><img src="<?php bloginfo('stylesheet_directory') ?>/images/02.jpg" alt="We Buy Gold" /></li> <li><img src="<?php bloginfo('stylesheet_directory') ?>/images/03.jpg" alt="Need Cash?" /></li> <li><img src="<?php bloginfo('stylesheet_directory') ?>/images/04.jpg" alt="Instant Cash Loans" /></li> </ul> </div> <?php } ?> Now, when I go to the blog page the header maintains that of the static pages however the header on the product page is changed to display "hi" as expected. I changed the name blog in the is_page function to another of the static pages and received the desired result. I am assuming this means somewhere in my template files that original header is being called to display on the blog page. If this is true where should I look to make that change? If this is not the case what am I doing wrong?
Any help is always appreciated!