Ask your WordPress questions! Pay money and get answers fast! (more info)

WPML implementation for logo and 1 picture

Hello,

I guess it's quite simple but...

I'd like 2 different logo for the website: http://www.doorsystems.be (French) and http://www.doorsystems.be/nl (Dutch).

And a different phone number for the 2 languages too (number on top of the page).

Someone is used to do those?
Thanks a lot,
Jonathan

Answers (2)

2016-04-25

Reigel Gallarde answers:

Fastest way to translate your logo without coding anything:

You need WPML String Translations addons.

1. navigate to WPML > String Translations > Translate texts in admin screens (scroll all the way to the bottom)
2. press CRTL+F to search... search for option_tree.
3. Click +option_tree and look for custom_logo.
4. Check the checkbox besides custom_logo.
5. scroll the page all the way to the bottom and click save.
6. navigate to WPML > String Translations
7. look for [option_tree]custom_logo and click translations.

do the same with your telephone number...
that image is located on the custom css as background of the header.
so on step 3 above, look for custom_css


Reigel Gallarde comments:

any luck?


Jonathan Surinx comments:

Sorry for my late reply...

It worked for the logo amazing! Thanks.

But I couldn't make it work for the custom_css... actually all the information about phone number and all is nowhere to be found... Not in the theme admin , not in the template files...

So I can't get that one... if you have any suggestion it would be welcome.
Thanks a lot again,
Jonathan

2016-04-25

Arnav Joy answers:

If you want and can edit your file then you can use following to check for current language


<?php

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

<img src="LOGO-SRC-FOR-NL-LANGUAGE" />
<?php
}
else {
?>
<img src="LOGO-SRC-FOR-OTHER-LANGUAGE" />
<?php } ?>




AND FOR PHONE NUMBER YOU CAN USE THIS

<?php
if( ICL_LANGUAGE_CODE == 'nl' )
echo 'PHONE NUMBER FOR NL LANGUAGE';
else
echo 'PHONE NUMBER FOR OTHER LANGUAGE ';
?>