ifelse statement to call a different header
-
I’m trying to create a page called “Franchise” and have that page call in a different header image. But it doesn’t work. This is what my code looks like in the header.php file;
<?php if (is_home() || is_page('home')) { ?>
<? elseif (is_page('franchise')) { ?>
<div id="franchisebanner">
<img src="/images/graphics/franchisebanner.jpg" />
</div>What am I doing wrong?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘ifelse statement to call a different header’ is closed to new replies.