Different background for default home page?
-
http://bizbuzmarketing.com/wordpress
Hi,
I’m trying to get two background images working, one image for the home page, and another for all other pages.
Trouble is, I can’t identify the blog “home” page (the WordPress default) for my php.
Thank you very much for any help.
Max
————————————-
This is the php I’m using in my header.php :
<?php if (is_page(‘0’) ): ?>
<style type=”text/css”>
body {background: url(http://bizbuzmarketing.com/wordpress/wp-content/themes/toolbox/images/bb-bkgd-2.jpg); background-repeat:repeat;}
</style><?php elseif (is_page() ): ?>
<style type=”text/css”>
body {background: url(http://bizbuzmarketing.com/wordpress/wp-content/themes/toolbox/images/bb-bkgd.jpg); top center no-repeat;}
</style><?php endif; ?>
- The topic ‘Different background for default home page?’ is closed to new replies.