Skip Navigation

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

Problem:
The client is unable to display an English version of the logo on their bilingual site (Greek default, English secondary) after moving from a temporary domain to a live site. The client has tried updating the logo URL and clearing the cache but cannot find the new image URL in the string translation.
Solution:
We recommend searching for the image ID in the admin strings section and translating it. This involves adding a translated image ID for the English version. Each image in the media library has an ID, which can be translated following the steps in our documentation on translating theme options: https://wpml.org/documentation/getting-started-guide/string-translation/how-to-translate-theme-options/

If this solution does not resolve the issue, it may be outdated or not applicable 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 further assistance is needed, please open a new support ticket at WPML support forum.

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 5 replies, has 0 voices.

Last updated by gerontopoulosN 1 week, 2 days ago.

Assisted by: Dražen.

Author Posts
January 27, 2025 at 11:04 am #16637238

gerontopoulosN

Background of the issue:
I am trying to display an English logo on my site, which has two languages: Greek (default) and English. I initially used a temporary domain (23109141231.thesite.link) during development, which I have unregistered from WPML. My site is now live at hidden link. I searched in the admin text area to find the string for the logo. The only string I found is: [widget_media_image][1]url hidden link. I changed the image to a new one named newLogoWpml, scanned for new URLs using the Astra theme, and deleted the cache from the troubleshooting page, but I couldn't find my new image.

Symptoms:
I cannot find a way to change the image from string translation, and the problem does not appear somewhere specific.

Questions:
How can I change the logo to display the English version on the English site?
Why can't I find the new image URL after scanning and clearing the cache?

January 27, 2025 at 11:16 am #16637361

Dražen
Supporter

Languages: English (English )

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

Hello,

please go to your theme option and select/upload the correct logo image for your default language, make sure it shows correctly. That way the new URL of the image is correctly updated.

Then go to String translation and at the bottom click the link to search for admin strings. Search for URLs and click to export that string XML configuration. Add the configuration to WPML > Settings > Custom XML configuration. Now go back to String translation, search for that URL, and translate it, adding your translated logo image URL.

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

Regards,
Drazen

January 27, 2025 at 12:26 pm #16637663

gerontopoulosN

Sir,

I have already done that. I mentioned it above.

I also (from wpml troubleshooting page) have cleared cache (and from wordpress plugin rocket).

To be honest i tried that two times (because the first one the name of the image was similar).

Now the name of my site logo is newLogoWpml (you can verify it from dev console).

After I changed the image, from localization I scanned for new strings, then I went to admin text and tried to find it.

There is only one [widget_media_image][1]url and is the old one.

January 27, 2025 at 12:30 pm #16637696

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for getting back.

Please try to search in admin strings for image ID and add it like that and translate:

- https://wpml.org/documentation/getting-started-guide/string-translation/how-to-translate-theme-options/

If you still have issue, share admin access and I will check it out for you.

Regards,
Drazen

January 27, 2025 at 12:46 pm #16637750

gerontopoulosN

I use Astra theme and the site logo is set from customize. I have attached an image to see.

I don't believe that the logo has a specific id (I don't use a template).

Can you tell me from the attached image if my assumption is incorrect?

I do not have yet a staging site.

pavlou_customize.JPG
January 27, 2025 at 12:54 pm #16637783

Dražen
Supporter

Languages: English (English )

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

Hello,

that does not matter or tell much, it matters how Astra is saving that option in DB.

As I can see from the previous tickets with same doubts, it is mostly likely the image ID, if you can check for that image ID in the admin strings and if it is there add and translate it, by adding a translated image ID for 2nd language.

Each image in media library has an ID as explained in the post shared above.

Screenshot: hidden link

Regards,
Drazen

January 27, 2025 at 1:11 pm #16637855

gerontopoulosN

It worked!

I am so thankful!!!

Thank you very much for your support!