• I don’t understand why WordPress makes this so difficult. I generally insert the snippet of code in the header.php file and it works but when I place the code in the header.php, it breaks the site. I feel like I’m missing </div> tags or I have too many </div> tags.

    <!— BEGIN featured image header —>
    <?php
    if (has_post_thumbnail()){
    echo'<div class=”art-header-noimage”>’;
    the_post_thumbnail(‘full’);
    }
    else{
    echo ‘<div class=”art-header”>’;
    }
    ?>
    <!— END featured image header —>

    Can someone assist me with the header images changing on each page?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Header image change’ is closed to new replies.