I’ve been trying to develop a wordpress template to use different header images on each page. I have found several closed topics which have been helpful but I’m at a sticking point where I think the code is correct but the images are not displaying.
The topic I have used for reference is: http://wordpress.org/support/topic/different-headers-for-each-page
The coding I have placed into my Main Index Template.php is:
get_header(); ?> <?php if (is_home()) get_header(); ?> <?php if (is_page(wh-casino()) include(get_template_directory() . 'http://techbunny.net/wp-content/uploads/2012/12/Sturgeons-078.jpeg'); ?>
I’m wondering if using the page name (wh-casino) or the image url is what’s causing the code to fail, please can someone point me in the right direction?
- The topic ‘Different headers coding.’ is closed to new replies.