Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2940

    Hi,

    I want every page, including the category pages to have a consistent header. How do I do that?

    This is the page http://www.pinkbeardesign.com/blog…I want every header to be like http://www.pinkbeardesign.com/blog/?page_id=380

    Thank you in advance.

    #39936

    Hey,

    open up header.php and replace following code:

    <!-- end center-->
    </div>
    <!--end wrapper-->
    </div>

    with:

    <!-- end center-->
    <?php
    if (!(is_single())){
    echo '<img src="my.image.jpg" alt="" title="" />';
    }
    ?>

    </div>

    <!–end wrapper–>

    </div>

    You can use any conditional tag you like: http://codex.wordpress.org/Conditional_Tags

    I excluded all posts in this example. So replace !(is_single()) with any conditional tag you want to use. Obviously you need to replace “my.image.jpg” with the path to your image…

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Static feature image on all pages including category pages’ is closed to new replies.