• How would you go about creating a header for the page you’re visting and have it display on that page.

    So, say for example, you had cateogires Door, Window and Kitchen. You click on a post which is in the category kitchen. The header image reflects this and says kitchen in the header image. Obviiusly I would have an image for each category. Additionally, what if I wanted to add an image for each page too. So if they click on archives the header says Archive, if they click on About the header says About.

    It’s just an idea I’m playing with at the moment, to make it easier for the user to know where it is they are.

    Would this be a case if else statements, and if so, can someone help in creating the required code?

    Thanks in advance

Viewing 1 replies (of 1 total)
  • I believe that this would require if else statements and a good number of them too depending on how many categories there were.

    Although I think it’d be possible to have a header called by retrieving the category number. By knowing the category number, you could just set up your pictures to be named 1.jpg 2.jpg etc. with the 1 relating to category 1 and the 2 being category 2. I think this would work for categories, but an if else statement would still be needed for archives.

Viewing 1 replies (of 1 total)
  • The topic ‘Header releated question’ is closed to new replies.