conditional tags?
-
hi,
I am trying to use the conditional tags. Basically I want to say that if it is the page About choose this image with a $bannerimg. So, where do I insert that $bannerimg in my code?
<?php if ( is_page(‘about’)) {
$bannerimg = about.jpg’;
} else {
$bannerimg = ‘home.jpg’;}
?>???????? <img src=”$bannerimg” align=”right” /> ???????
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘conditional tags?’ is closed to new replies.