Skip to content Skip to sidebar

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

Problem:
The client wants a different site logo for each language on their WordPress site using a child theme of Twenty Twenty-One. They have translated the string [theme_mods_acorn]custom_logo with the relevant image ID but are still seeing the same logo across different languages.
Solution:
We recommend using WPML's String Translation to manage different logos for each language. Here are two methods to achieve this:
Method 1:
Navigate to WPML > String Translation. At the bottom of the page, enable the checkbox 'Look for strings while pages are rendered'. Visit the front end of a page displaying the logo, then return to WPML > String Translation and search for the string to see if it appears.
Method 2:
If the string does not appear in WPML > String Translation, it might be categorized as admin text. Follow the guide on finding and translating admin text strings: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

If these steps do not resolve your issue, or if the solution seems outdated or irrelevant to your specific case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If needed, please open a new support ticket for further assistance.

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, 1 month ago.

Assisted by: Mihai Apetrei.

Author Posts
June 13, 2024 at 6:06 pm #15737531

Bob

Background of the issue:
I want a different site logo for each language. I've translated the string [theme_mods_acorn]custom_logo with the relevant image ID but I'm still getting the same logo on both languages. The theme is a child theme of twenty twentyone. I know I can use if(ICL_LANGUAGE_CODE== etc. but I'd rather not add custom code if I don't need it.

Symptoms:
I'm still getting the same logo on both languages.

Questions:
How can I set a different site logo for each language without adding custom code?

June 13, 2024 at 7:32 pm #15737701

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

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

Hi there.

If you try to search by a part of the image name (by following one of the two methods I will present below), you might find the url of the logo image and you should be able to change that to the logo of the translated version of the logo.

Usually, the translation of the logo is done via "translating" the media id OR the logo URL.

Here are the two methods.

Method 1:

Go to WPML > String Translation and at the bottom of the page you will find a checkbox called "Look for strings while pages are rendered". You can enable (check) that and then go in the front end to a page where you have that string showing up and then go back to WPML > String Translation and search for that string and see if it now shows up.

Method 2: If you can't find them inside the WPML > String Translation, they might be added as admin text.

This should be the normal process to find and translate admin text strings:https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

Please let me know how that goes.

Mihai Apetrei

June 16, 2024 at 6:48 pm #15742943

Bob

I found another string hiding away - admin_texts_site_logo site_logo that needed to be changed to the image ID