Support » Fixing WordPress » Header different on blog page

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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


    just use an if-clause in your header. Do it with conditional tags:

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Header different on blog page’ is closed to new replies.