I can’t get this to work.
where do you put this code?
I’ve tried like this in the header.php, but it doesn’t work, it shows just empty headerspace:
#header { background: url(<?php if (is_page('7') ): ?>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/tdvheader01.jpg" alt='Uitmarkt' />
<?php elseif (is_page('8') ): ?>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/kubrickheader.jpg" alt='alt8' />
<?php else : ?>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/kubrickheader.jpg" />
<?php endif; ?>) no-repeat bottom center; }
I replaced the original #header
with this.
Any tips?
Thanks already