I already put my own custom image for the header, but when one navigates about the site, it changes to random stuff like a pic of palm trees. Any way to get it to stick with my custom image?
Thanks.
I already put my own custom image for the header, but when one navigates about the site, it changes to random stuff like a pic of palm trees. Any way to get it to stick with my custom image?
Thanks.
I would think the simplest way would be to take the .jpg file you've chosen as a header and rename it as header_2.jpg, header_3.jpg, header_4.jpg and header_5.jpg then upload the four (extra) copies of the same jpg file to your wp-content/themes/cutline(xx)/images folder. That way no matter what image gets called by the header.php you have the same graphic.
Alternatively, you could modify the header.php file itself - each place below that references a header_x.jpg file other than your designated header_1.jpg you simply change the x to a 1.
<div id="header_img">
<?php if (is_home()) { ?>
<img src="<?php bloginfo('template_url'); ?>/images/header_1.jpg" width="970" height="153" alt="<?php bloginfo('name'); ?> header image 1" title="<?php bloginfo('name'); ?> header image 1" />
<?php } elseif (is_single()) { ?>
<img src="<?php bloginfo('template_url'); ?>/images/header_2.jpg" width="970" height="161" alt="<?php bloginfo('name'); ?> header image 2" title="<?php bloginfo('name'); ?> header image 2" />
<?php } elseif (is_page()) { ?>
<img src="<?php bloginfo('template_url'); ?>/images/header_4.jpg" width="970" height="171" alt="<?php bloginfo('name'); ?> header image 3" title="<?php bloginfo('name'); ?> header image 3" />
<?php } elseif (is_archive()) { ?>
<img src="<?php bloginfo('template_url'); ?>/images/header_3.jpg" width="970" height="222" alt="<?php bloginfo('name'); ?> header image 4" title="<?php bloginfo('name'); ?> header image 4" />
<?php } else { ?>
<img src="<?php bloginfo('template_url'); ?>/images/header_5.jpg" width="970" height="179" alt="<?php bloginfo('name'); ?> header image 5" title="<?php bloginfo('name'); ?> header image 5" />
<?php } ?>
</div>
I chose the first option and it worked like a charm! Thank you :)
You must log in to post.