Skip Navigation

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

Problem:
The client needed to translate the logo on their multilingual website.

Solution:
First, we identified the media IDs for each logo image in the different languages. To find the media ID, go to the WordPress backend > Media, click on an image, and the media ID will be in the URL in the browser admin bar.

Next, we searched for the default logo media ID in WPML > String Translation. For detailed instructions on finding strings, refer to our documentation on translating admin and settings strings.

After adding the default logo to String Translation, we translated it with the media ID of the logo image for the English version.

This resolved the issue, and the correct logo now displays for the English language version of the site.

If you're experiencing a similar issue, we recommend following these steps. However, this solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.

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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Mihai Apetrei 1 year, 3 months ago.

Assisted by: Mihai Apetrei.

Author Posts
March 28, 2024 at 10:34 pm #15462714

michaelD-126

How can I translate the logo?

March 28, 2024 at 10:55 pm #15462778

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

The way a logo gets translated depends on how the code is written in the theme.

So, in our case, I had to find the media ids for each of the logo images (default language and translation) and then look for the default logo media id (which is 1123) for the default logo (hidden link) by searching for it here:
hidden link

You can find the media id of an image by going to WordPress backend > Media (hidden link) > and when you click on an image and you open it to view it, if you look in the browser admin bar, at the end of the url, you will find a few numbers, that is the media ID.

Practically, the procedure from here:
https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#translate-admin-and-settings-strings

After I selected that and added it to "String Translation", I had to go in WPML > String Translation, and transalte it with the media id of the english logo image (hidden link) which was "1122".

So that was all the procedure - I shared it with you so that you can understand what I did because it might help you in the future, too.

Now, you will see here (hidden link) that the correct logo is showing up for EN. So this issue is resolved now.

Good luck with the project! 🙂

Mihai

Screenshot 2024-03-29 at 00.51.47.png
Screenshot 2024-03-29 at 00.47.40.png
March 29, 2024 at 6:56 am #15463128

michaelD-126

Thank. We are OK.

Thanks ina dvance!