Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
I am using WPML on my website and I am trying to translate the logo to different languages, but it's not working. I have uploaded the translated logo in the media library and selected it for the translated pages, but the original logo still appears.

Solution:
- Upload new image to default language media library

- Go to your theme settings and set a new logo image for your default language

- Go to WPML String translations > Admin text, find your new logo / URL and add for translation. If need scroll to admin text and add logo string for translation and translation.

- The string will probably show the image ID, so you should add the image ID you want to use in 2nd language.

Relevant Documentation:
- https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#strings-arent-selected-for-translation
- https://wpthemego.com/how-to-get-image-id-number-in-wordpress/

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 8 replies, has 2 voices.

Last updated by martijnB-14 1 year, 10 months ago.

Assisted by: Dražen Duvnjak.

Author Posts
January 25, 2023 at 5:10 pm #12892465

martijnB-14

Tell us what you are trying to do?
I need a different logo for the FR, ENG and DE sites (different than the root NL site) but it's not working anymore after i added FR as a 4th language

Is there any documentation that you are following?
I've tried several different options in string translation to find it but no luck

Is there a similar example that we can see?
When i inspect my site, the logo used on the root site is: hidden link
But when i search for the string to add a string translation i can only find an old file with that logo but not the one i'm using now. The String Translation shows an upload from 2020
hidden link

What is the link to your site?
hidden link

Thank you for your help 🙂

Sstring translation.JPG
January 25, 2023 at 5:13 pm #12892517

martijnB-14

For some reason the German and English site are showing the right logo (they are running for 1.5 prior to adding the French site now). But eventhough the logo on the main site is a 2023 upload, the German and English logo go to a 2021 upload:
hidden link
hidden link

January 25, 2023 at 5:16 pm #12892527

martijnB-14

Dutch site (main language) => showing a new 2023 Dutch logo
English site => is showing a 2021 International logo
German site => is showing a 2021 International logo
French site => Should be showing this International "Message in a Cuddle" logo, but is showing the Dutch logo

January 26, 2023 at 7:37 am #12895133

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for contacting us.

Please try to follow next steps:

- delete the related string from WPML string translation (https://wpml.org/documentation/getting-started-guide/string-translation/#deleting-strings)

- Upload new image to default language media library

- Go to your theme settings and set new logo image for your default language

- Go to WPML String translations > Admin text, find your new logo / URL and add for translation.

-> https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#strings-arent-selected-for-translation:~:text=If%20you%20don%E2%80%99t%20see%20the%20dropdown%2C%20scroll%20to%20the%20bottom%20of%20the%20page%20and%20click%20the%20Translate%20texts%20in%20admin%20screens%20link.

- Translate

Let me know how it goes.

Regards,
Drazen

January 26, 2023 at 9:00 am #12895575

martijnB-14

Hi Drazen,

Thank you for your reply. I tried that already.

I've removed the old logo, added a new logo. So now the Dutch (main) and French site are showing the new logo. If you look at the site the new logo is in a 2023 folder upload.

But when I then remove the string from string translation and try to add it again via Admin text....it shows only the string with the old 2020 folder upload. (See image attached to the first post)

Is there a way to reset that string data in some way so that it grabs the new logo?

January 26, 2023 at 9:05 am #12895583

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

when saving new data and searching it from admin text, it should show the latest one. So if 2020 image is not in your theme options, there is no way it still shows old, non-existing data, when trying to add it for translation from admin text. The only thing possible is this is some kind of bug.

To check further, please provide admin access to your website, and I will take a look.

Please make a backup before proceeding.

Regards,
Drazen

January 26, 2023 at 9:50 am #12895863

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

I checked further and found the issue.

The admin text you mention ec_deluxe_all_header_logo is not from your current theme, it is probably from some old one you used before. You are using now Flatsome.

I have added a Flatsome theme logo option for translation. It shows an image ID, so you need to add the correct IDs as a translation.

Correct string: [theme_mods_flatsome-child]site_logo

Please check the images attached and add the correct translations for other languages, as you can see works fine for French.

Regards,
Drazen

Screenshot_2.jpg
Screenshot_1.jpg
January 26, 2023 at 10:03 am #12895991

martijnB-14

Hi Drazen,

Thank you so much, that solved it. Then i know why i couldn't find it because the string only stated "4053" and i was searching for the file name. You're the hero of today 😉 Thank you so much for the quick replies, have a nice day and keep doing an awesome job!