Title: Polylang &#8211; multiple headers
Last modified: August 20, 2016

---

# Polylang – multiple headers

 *  [uriman](https://wordpress.org/support/users/uriman/)
 * (@uriman)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/polylang-multiple-headers/)
 * Hi,
    I have multilanguage site, and I must implementation different banner (header
   image) for each language. How to I use one image for one language and other for
   another language?
 * Question:Polylang supports multiple headers? If yes – How to I do that?
    Thanks
   a lot …
 * [http://wordpress.org/extend/plugins/polylang/](http://wordpress.org/extend/plugins/polylang/)

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

 *  [ChowKaiDeng](https://wordpress.org/support/users/chowkaideng/)
 * (@chowkaideng)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/polylang-multiple-headers/#post-2650871)
 * Hi! I use this function in any place of my templates where I need to call different
   contents by language:
 *     ```
       <?php
       	$currentlang = get_bloginfo('language');
       	if($currentlang=="en-US"):
       ?>
   
          <!-- Begin header image for your secondary language. In my case, English is the second language for my site. -->
   
          <!-- End here your header image for your secondary language -->
   
       <?php else: ?>
   
          <!-- Begin here your header image for your main or default language -->
   
          <!-- End here your header image for your main or default language -->
   
       <?php endif; ?>
       ```
   
 * Of course, you may use this not just for images, but for any content you need
   to call in your templates, like sidebar titles in different languages and so 
   on.
 * I hope this work for you!
 *  [ChowKaiDeng](https://wordpress.org/support/users/chowkaideng/)
 * (@chowkaideng)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/polylang-multiple-headers/#post-2650872)
 * PS: in line 3, replace the “en-US” by the “Locale” code that you have defined
   for your language.
 *  Thread Starter [uriman](https://wordpress.org/support/users/uriman/)
 * (@uriman)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/polylang-multiple-headers/#post-2650937)
 * Hi ChowKaiDeng,
    Thank you very match, your post was very usefull for me 🙂
 * All is working
    Best regards uriman
 *  [ChowKaiDeng](https://wordpress.org/support/users/chowkaideng/)
 * (@chowkaideng)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/polylang-multiple-headers/#post-2650940)
 * You’re welcome! I’m glad it helped.
    Greetings!
 *  [andrejs.zelcs](https://wordpress.org/support/users/andrejszelcs/)
 * (@andrejszelcs)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/polylang-multiple-headers/#post-2650993)
 * It looks like I’ve got similar problem, but for you it would be nothing. The 
   first, I’m beginner, I using wordpress 1 month, and I’m member of this forum 
   2 hours 🙂 And second problem – I’m really bad in english, and it’s hard to read
   so much specific text.
    I made my web pages in 4 languages, all is ok, but I 
   still can’t find where translate home page intro, features content, heading and
   description. I use ColorWay theme and latest polylang version. Where is it? Thank’s
   for help..
 *  [ChowKaiDeng](https://wordpress.org/support/users/chowkaideng/)
 * (@chowkaideng)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/polylang-multiple-headers/#post-2650994)
 * Hi andrejs! I’m afraid this method requires a little bit of PHP knowledge, and
   the Colorway Theme must be modified in order to work in that way with the polylang
   plugin, but maybe I could help.
 * First thing: Are you using the WordPress.com server service or do you own an 
   outside hosting provider? I think you must have your WordPress website installed
   on your own hosting in order to make this changes. If so, please send me an email
   to chowkaideng-at-gmail.com and I could try to change the theme files and send
   it back to you.
 * And, don’t worry, my english is very bad too, and I understand you prefectly 
   🙂
 *  [mountain_spring](https://wordpress.org/support/users/mountain_spring/)
 * (@mountain_spring)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/polylang-multiple-headers/#post-2651023)
 * [@chowkaideng](https://wordpress.org/support/users/chowkaideng/), Thanks for 
   this code, you saved me a lot of nerves. 😉
 *  [AntonVershinin](https://wordpress.org/support/users/antonvershinin/)
 * (@antonvershinin)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/polylang-multiple-headers/#post-2651027)
 * Hi, sorry, do not tell me whether you can use this code to change the header 
   image, depending on the language? Where do you want to insert this code?
 *  [elenavmolina](https://wordpress.org/support/users/elenavmolina/)
 * (@elenavmolina)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/polylang-multiple-headers/#post-2651029)
 * hello. I have a similar problem…
 * But in may case Polylang is hidding the header text and a hidding sidebar in 
   Spanish (default language) dunno why. In secundary language (English) works just
   fine.
 * I’m using Brunelleschi theme, and my blog is [http://www.porotracuba.org](http://www.porotracuba.org)
 * thanks!
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/polylang-multiple-headers/#post-2651030)
 * In your admin dashboard, first activate “all languages” in the languages menu
   in the admin toolbar on top of your screen.
 * Then go to settings->languages->strings translation and translate your site title
   and description. Click on save changes.
 *  [elenavmolina](https://wordpress.org/support/users/elenavmolina/)
 * (@elenavmolina)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/polylang-multiple-headers/#post-2651031)
 * Hi! Thanks for the help. I’ve done all that already. Didn’t worked.
 * Dunno way but I even introduced some words in Header.php on the editor — they
   apeared in the header of english version but the header of the spanish version
   remain the same.
 * Is like it is not reading from header.php or something…
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/polylang-multiple-headers/#post-2651032)
 * I just went back to your site, and now the title appears on both English and 
   Spanish pages.
 *  [elenavmolina](https://wordpress.org/support/users/elenavmolina/)
 * (@elenavmolina)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/polylang-multiple-headers/#post-2651033)
 * Hi! yes i just fix it. I make a trik and change the language to Colombian Spanish
   and now it works fine. I change it back to Spain-Spanis ans it keeps doing the
   same weird thing… 🙁
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/polylang-multiple-headers/#post-2651034)
 * Oh yes, I discovered a big incompatibility between the Brunelleschi theme and
   multilingual plugins!
 * The theme uses localized options! For example ‘Text on Top’ is saved on admin
   side (if your admin is English), but it will look for ‘Texto en cima’ on Spanish
   frontend. As soon as the theme is fully translated for a language, it breaks 
   on multilingual sites. 🙁
 * A quick workaround would be to edit the Spanish translation with [poedit](http://www.poedit.net/)
   and remove the translations of the theme options such as ‘Text on Top’ but much
   better, ask the author to modify his theme to save options values regardless 
   of the language (only what is displayed should be translated, not what is saved
   in the database).
 *  [elenavmolina](https://wordpress.org/support/users/elenavmolina/)
 * (@elenavmolina)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/polylang-multiple-headers/#post-2651035)
 * Ok. thanks. It works for other Spanish versions but not for Spanish-Spanish (
   es-ES) version. Ok I will do that.
 * Thanks a lot for the help!

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

The topic ‘Polylang – multiple headers’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 15 replies
 * 7 participants
 * Last reply from: [elenavmolina](https://wordpress.org/support/users/elenavmolina/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/polylang-multiple-headers/#post-2651035)
 * Status: not resolved