Using IF statement on is_page to change images
-
Hi,
I am currently using this if statement to change the headers of each page I use.<?php if (is_page('Home')) { include(TEMPLATEPATH.'/header-col3.php'); } elseif (is_page('Booking Procedure')) { include(TEMPLATEPATH.'/header-col3.php'); } elseif (is_page('Contact Us')) { include(TEMPLATEPATH.'/header-col3.php'); } else {include(TEMPLATEPATH.'/header-main.php');} ?>
But all of them only have a different header picture, how can I use php to change the picture if it is “home” page or a “contact” page???
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Using IF statement on is_page to change images’ is closed to new replies.