WordPress.org

Ready to get started?Download WordPress

Forums

Header different on blog page (4 posts)

  1. Ravenmaster
    Member
    Posted 5 years ago #

    How can I set a different header graphic on my blog page while leaving the others as they are on everything else?

  2. Sumit1988
    Member
    Posted 5 years ago #

    what do you mean with "others" ?

    you can simply delete your theme part in the header and put it into the single/index/page/archive/ect.php and do the changes to the templates you want to. But its a lot of work if you want to change something in the header for all files. So...
    Other way (better way) is to use a php if else loop. Then define, that the header is e.g. header2 if page xy is displayed.

  3. Ravenmaster
    Member
    Posted 5 years ago #

    i only want the blog page to display a different header - everything else stays the same - I am not sure how exactly to do the if else loop -

    do you have an example of a if else loop that i can copy/paste and change what I need to - I am still fairly new to wordpress and php - always worked in html - very simple pages

    thanks

  4. Sumit1988
    Member
    Posted 5 years ago #

    just use an if-clause in your header. Do it with conditional tags:
    http://codex.wordpress.org/Conditional_Tags

Topic Closed

This topic has been closed to new replies.

About this Topic