Skip Navigation

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

Problem:
The client is experiencing issues with URLs and an image in the sidebar slider not translating correctly after updating WPML and Elementor. The URLs used to appear in the Advanced Translation Editor (ATE) and the image used to translate both the URL and the image itself. The client has added XML for other translations but is unsure if the same approach can be applied to the sidebar image and URL, which are managed via String Translation.
Solution:
We recommend translating the strings associated with the sidebar image and URL in the 'widgets' text-domain. This should resolve the issue with the translations not appearing correctly on the frontend. If you're experiencing this issue, ensure that you translate both the URL and the image source strings.

Please note that this solution might 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 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 5 replies, has 0 voices.

Last updated by Osama Mersal 2 days, 10 hours ago.

Assisted by: Osama Mersal.

Author Posts
April 10, 2025 at 2:25 pm #16919156

justinK-16

Hi,

Added the XML - now all URLs appear in the ATE (already translated - as they should be from past translation).

So do you think that the issue is a conflict with Elementor and WPML, since the URLs used to appear in the ATE (without XML registration)?

As I have now activated all plugins.
Recently, I updated WPML and Elementor and Elementor Pro (maybe a week before I spotted the issue).

One last thing - I originally brought this up at the same time.
The image in the sidebar slider also used to translate both the image AND the URL.

Can you provide the XML to add for this (although it may be a slightly more complicated issue)

This sidebar is in a separate blog post template
The Image appears as it has been added to the Sidebar with a Custom HTML widget, and a plugin called Widget Context is configured to tell it on which post we want it to appear.

I have then added the script to String Translation (after sourcing it from Admin Texts).

Then I string translation, I translated the URL, Image Source, and the ALT.
This is all still translated correctly in string translation when I check it.

However, I believe this is part of the same issue as I discovered it no longer translates at the same time as the other images.

Is it possible to also register this in XML, or is it different as it is being handled in String Translation?
It NEVER previously appeared in the ATE and I actually don't need it to. I was happy with it automatically translating in the background.

April 10, 2025 at 2:27 pm #16919203

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

The image you shared in the screenshot doesn't appear on the staging site. (hidden link)

Would you please check it and let me know so I can check why its URL is not translated?

Best regards,
Osama

April 10, 2025 at 2:42 pm #16919274

justinK-16

It is definitely there, it appears as the last element on the RH sidebar under the orange button that says "Browse Premade Itineraries".

That particular image is part of a slider that shows 2 or 3 other images - so as long as your mouse is not hovering over it, it will slide into view.

April 10, 2025 at 3:04 pm #16919370

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Would you please translate the string in the "widgets" text-domain? (Kindly check the attached screenshot)

Best regards,
Osama

2025-04-10_17-01-37.png
April 10, 2025 at 3:35 pm #16919655

justinK-16

Ok that worked 🙂

Is this something new in the last update?

Previously I only had to loacte the admin text, add it to String translation and then search for and translate this Domain: admin_texts_widget_custom_html with the corresponding name.

So now BOTH Domain "Widgets" and "admin_texts_widget_custom_html" need to be translated?

I guess I am only asking as all our other images that appear in the sidebar slider (excluding Pinterest pins) are ONLY translated in the Domain "admin_texts_widget_custom_html"

...and now that I have translated the string for the original image in question, I can no longer find it in string Translation when searching for it????

April 10, 2025 at 3:48 pm #16919706

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Yes, you need to translate both strings in order to get the string translated on the front end.

Best regards,
Osama