Reply To: Separate Blog Page header?

Home Forums Support Separate Blog Page header? Reply To: Separate Blog Page header?

#158550
Tom
Lead Developer
Lead Developer

Try this:

<?php
global $post;
$image = get_post_meta($post->ID, 'custom_header', true);
if ( ! empty( $image ) ) : ?>
      <img src=".." alt="" style="position: relative; vertical-align: bottom;" />
<?php elseif ( is_home() ) : ?>
      <img src="URL TO BLOG HEADER" alt="" />
<?php else : ?>
      <img src="xxxxxxxxxxxxx" alt="" />
<?php endif; ?>