Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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 01:22 AM.

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