• I am using the Esther 2.0 theme and I would like to have different header pictures in my different pages. Is that possible and how do I do?

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • probably, what’s the url to your site?

    Peter

    Thread Starter ncvjensen

    (@ncvjensen)

    Hi again

    it is:

    https://www.altomniller.dk

    You mean the picture of you (or that man person ?? )?

    That all depends on in which file the #header div has been defined.

    In ‘standard’ wordpress themes, things in your header that don’t change are defined in a file called header.php, which is the same for all pages. An example of that would be the head section of the xhtml page. Same for the footer (footer.php).

    It is however possible to move that #header information to a page (custom template), which can be different for all pages.

    I’ve downloaded the Esther theme, and it seems to be the case.

    Another (easier) possibility is to assign different classes to different pages, and to put different background images into these different classes. You’ld have to build some if statements into your header.php

    You can check with is_page('CV') for instance that you’re on the CV page and assign a class called cv-class to it.

    In your css you then add that cv-class with the appropriate image (and remove it from #header of course).

    Peter

    Or you could use body_class().

    Good addition, esmi, didn’t know about that one.

    Peter

    Thread Starter ncvjensen

    (@ncvjensen)

    Sorry guys..

    This seems to be to technical to me.. Is’nt there a easier way.. Or are you able to explain it in a better way – like if you were telling it to a seven year old ??

    Is it something like this?
    link topic

    Gr. D

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Different header’ is closed to new replies.