This thread is resolved. Here is a description of the problem and solution.
Problem:
The client was experiencing issues with the Media Translation not working correctly for the WoodMart theme using Elementor. Specifically, images translated into Vietnamese were not displayed on the translated version of the homepage.
Solution:
We resolved the issue by adding a custom language configuration for the Elementor widget used by the WoodMart theme. Here are the steps we followed:
1) Navigate to WPML >> Settings >> Custom XML Configuration. 2) Insert the following XML configuration and save the changes:
3) Open the Homepage for editing in English and make a minor change to refresh the translation settings. 4) Resave the Homepage translation from the WPML Translation Editor.
For further details on configuring language files, please refer to the following documentation:
If this solution does not apply to your case, or if it seems outdated, 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 issues persist, 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.
As requested, here I pass you again, the issue we have with the Media Translation not working.
I've attached the image for your reference where you can see that the image has been translated but is not reflecting on the translated language.
Translated image is the top image on the Staging (Test) Homepage. hidden link hidden link
I've done all the possible tests:
1- Translate the image. Search and translate image option.
2- Delete the original image, upload a new image and translated. Search and translate image option
3- Delete the original image, upload a new image, translated, clear all cache. Search and translate image option
4- Delete the original image, upload a new image, translated, clear all cache and refresh the original and translated page. Search and translate image option.
The main banner desktop image did move to the phone banner that's why it was not showing. I've just moved it back to the main desktop banner and it shows again.
When opening the media translation, it never finishes to open completely the page.
I tried again to translate another image but still not working.
Sorry for the delayed response. We are still working on this issue, but unfortunately, the possible workarounds haven't resolved it so far. We will get back to you soon with an update. Thank you for your patience.
The banner image translation is not displaying due to a compatibility issue. As per our escalation procedure, I have reproduced the issue on a clean installation and escalated it to our compatibility team for further investigation. We will update you as soon as we have more information. Please wait.
3) Open the Homepage for editing in English
4) Make a minor change in the content and save the changes to refresh the translation settings
5) Resave Homepage translation from WPML Translation Editor
Please refer to the attached images for more details.
May I know what is the problem? Is it a plugin bug? Or it is something only affecting us?
Just to understand if this is going to be fixed in future updates or we should leave the code.
Thank you for the feedback. We are glad to hear that you are now getting the expected results.
When using custom Elementor widgets, it is important to define the WPML language configuration in the wpml-config.xml file of the Elementor add-on plugin or the theme that includes the widget. Although the WoodMart theme already includes a wpml-config.xml file, it does not fully support translation of the Promo Banner image.
To resolve this, we added the necessary language configuration under WPML >> Settings >> Custom XML Configuration. This step is required because it overrides the existing configuration in the WoodMart theme’s wpml-config.xml file, ensuring proper translation of the Promo Banner image. Keeping this custom configuration in place ensures that the translations work as expected. For more details, please refer the following documentation.
We tested several combinations of image translation (by its ID) configurations, and the one that finally worked is the one currently in place. This testing process is what caused the delay. Thank you for your patience.
Thank you for the feedback. In most cases, the image is not translated into secondary languages. That is why the WoodMart theme does not include the following line in the language configuration for the wd_banner widget in the wpml-config.xml file:
It is safe to keep the language configuration in the Custom XML Configuration section. It won’t be lost when you upgrade the WPML plugin, as it is stored in the database.