Hi all,
Is there a way I can call different styles in my header.php using 'if' & 'else'?
I need to do it for my homepage, so Can I use:
<?php if (is_page(home)) { ?>
stuff here
<?php } else { ?>
stuff here
<?php } ?>
Will this be correct?
Thankyou
Hi all,
Is there a way I can call different styles in my header.php using 'if' & 'else'?
I need to do it for my homepage, so Can I use:
<?php if (is_page(home)) { ?>
stuff here
<?php } else { ?>
stuff here
<?php } ?>
Will this be correct?
Thankyou
Sure... I think this is what you need (toward the bottom, you can see the example that uses different banner images depending on what page it's on).
http://codex.wordpress.org/Conditional_Tags
You must log in to post.