Hi,
I have the same question as above. I want to have a different background image on different pages for a wordpress website for a client. I’ve tried doing it in custom fields on pages, but the images never show up on the page.
I’ve also tried:
<?php if (is_page('about')) : ?>
<img src="<?php bloginfo('template_url'); ?>/images/bodyabout.jpg" alt="" />
<?php elseif (is_page_template('page_home.php')) : ?>
<img src="<?php bloginfo('template_url'); ?>/images/bodyhome.jpg" alt="" />
<?php else : ?>
<img src="<?php bloginfo('template_url'); ?>/images/bodyexhibits.jpg" alt="" />
<?php endif; ?>
and placed it in my header.php file just below <body>
The image showed up but it pushed all of my content (header, sidebar, footer) down below it on the page. I need to know what/where to put in css stylesheet and I really want the background images to fit in the wrapper space, not fill the whole screen.
Can anyone give me the right code for header.php and for css stylesheet? Or is there another way, possibly in custom fields?
Thanks in advance.