Title: Problem with the single.php header
Last modified: August 19, 2016

---

# Problem with the single.php header

 *  [maisteriharju](https://wordpress.org/support/users/maisteriharju/)
 * (@maisteriharju)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/problem-with-the-singlephp-header/)
 * Hi,
 * I’m using WordPress in slightly unconventional way. First of all I’m making website
   which has two language options (English and Finnish) and both languages has different
   header. The header includes the navigation. When you click the the british flag
   the header and navigation changes into English. This is nothing new.
 * What is new is that this website has also very simple gallery. I’m using WordPress
   posts to make little galleries. Each post is one gallery. The gallery itself 
   has been pulled together with archives-function which I found to be the only 
   way to have two different templates for posts.
 * Now the problem is this:
    When I open one gallery (or post) from the archives
   it opens on single.php -template. It shows only the default header (Finnish header)
   even if I’m coming from the archives which has the Enlish header. This is obvious
   because the links from archives point to [http://www.mydomain.com/?=px](http://www.mydomain.com/?=px)(
   x as the post number).
 * I really can’t figure out how to have the single.php to have different header
   which changes according to whether you are coming from Finnish part of the site
   or the English part.
 * Conditional tags won’t help me with this because the posts are only in one category.
   I can’t make two different categories because then the person who updates the
   galleries should make two galleries instead of one and it’s just too much work.
 * If any of you understood the situation and knows something which could help me
   with the problem, please comment.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [adamh](https://wordpress.org/support/users/adamh/)
 * (@adamh)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/problem-with-the-singlephp-header/#post-1137181)
 * Could you set a cookie or session var to the current language and then just have
   a switch in the header.php that displays the relevant header?
 *  Thread Starter [maisteriharju](https://wordpress.org/support/users/maisteriharju/)
 * (@maisteriharju)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/problem-with-the-singlephp-header/#post-1137187)
 * Hmm.. I could do that if I just could. 🙂 I haven’t ever done anything with cookies
   or session vars and I don’t know much about them. Is there some quick tutorial
   about this?
 *  [adamh](https://wordpress.org/support/users/adamh/)
 * (@adamh)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/problem-with-the-singlephp-header/#post-1137189)
 * The php manual is a good start
 * [http://uk.php.net/manual/en/book.session.php](http://uk.php.net/manual/en/book.session.php)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problem with the single.php header’ is closed to new replies.

## Tags

 * [archives](https://wordpress.org/support/topic-tag/archives/)
 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [single](https://wordpress.org/support/topic-tag/single/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [adamh](https://wordpress.org/support/users/adamh/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/problem-with-the-singlephp-header/#post-1137189)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
