February 10, 201412 yr How can I get the header image on this page http://nurdit.com/rachelanderson/?portfolio=it-doesnt-always-work-out-and-thats-ok be the same as the header image on this page http://nurdit.com/rachelanderson/?page_id=148 Really stumped <!-- setup vars --> <?php $featured_image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); $header = get_option( 'refinery_header' ); ?> <!-- /setup vars --> <!-- header --> <?php if ( $featured_image || $header['image'] ) : ?> <header id="header" role="header"> <!-- custom header --> <?php if ( $featured_image && ! is_single() && ! is_home() && ! is_archive() && ! is_search() ) : ?> <div id="header_image" style="background: url(<?php echo $featured_image[0]; ?>) top center no-repeat;"></div> <?php else : ?> <div id="header_image" style="background: url(<?php echo $header['image']; ?>) top center no-repeat;"></div> <?php endif; ?> <!-- /custom header --> Edited February 10, 201412 yr by dpuk44
February 20, 201412 yr Just checking this is the same code from both pages e.g. they are both made from this one php page?
Create an account or sign in to comment