Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Languages & Translations »

Different Header Images for Different Languages using WPML

Prev Previous Post   Next Post Next
Old Jun 2, 2014, 03:42 AM
164 posts · Aug 2010
Different Header Images for Different Languages using WPML

I'm using WPML for http://papallaitants.fr/
It's going ok so far but I'd like the banner to be in French when it's a French reader and English when it's an English reader.

I found this https://wpml.org/forums/topic/can-i-...each-language/ which is helpful. It tells me to add some code.

"you need insert the link into img tags.

Then add the code into your header.php file where you display your logo.

if (ICL_LANGUAGE_CODE == 'en') { ?>

<img src="http://earlymusicbesalu.com/site/wp-content/themes/earlymusicbesalu/images/logo-eng-2012.png"/>

} else if (ICL_LANGUAGE_CODE == 'es') { ?>
<img src="http://earlymusicbesalu.com/site/wp-content/themes/earlymusicbesalu/images/logo-es-2012.png" />

} else if (ICL_LANGUAGE_CODE == 'ca') {?>
<img src="http://earlymusicbesalu.com/site/wp-content/themes/earlymusicbesalu/images/logo-ca-2012.png" />

} else if (ICL_LANGUAGE_CODE == 'fr') {
<img src="http://earlymusicbesalu.com/site/wp-content/themes/earlymusicbesalu/images/logo-fr-2012.png"/>

This seems clear enough but where is the header.php file?
Or is there a different way to do it?


header, images, wpml

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Different rotating header images in different languages freelancekonsulenten Header configuration & styling 0 Aug 7, 2011 05:33 AM
[SOLVED] WPML &amp; Atahualpa -&gt; How to place a horizontal language switch in the header Flavio Header configuration & styling 4 Jul 6, 2011 07:02 AM
Languages? crashtest ThemeFrame Presales 2 Dec 19, 2010 05:12 AM

All times are GMT -6. The time now is 08:47 AM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.