|
|
Hi Bigul,
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.
Nothing seems to be working.
Regards.
|
|
|
Hello,
Welcome to the WPML support forum. I will do my best to help you resolve the issue.
We are still working on this issue. As part of our troubleshooting steps, we updated all plugins, including Elementor, to their latest versions.
After the update, the banner image is no longer displayed on the frontend in both languages. Please refer to the attached image for details.
Sorry, please check on your end and let us know if it is working for you or not.
--
Thanks!
Bigul
|
|
|
Hi Bigul,
Thanks for the feedback.
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.
Regards,
Xavier
|
|
|
Hi Xavier,
Thank you for the updates. We are currently reviewing the issue in more detail and will get back to you as soon as possible. Please wait.
--
Thanks!
Bigul
|
|
|
Hi Bigul,
Any update on this issue??
Thanks,
Xavier
|
|
|
Hi Xavier,
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.
--
Thanks!
Bigul
|
|
|
Hi Bigul,
Thanks for the follow up.
Regards,
Xavier
|
|
|
Hi Bigul,
It's over a week since our last message and so far no news about this issue.
Do you know anything more about it?
Regards,
Xavier
|
|
|
Hi Xavier,
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.
Sandbox Site: hidden link
Page: hidden link
--
Thanks!
Bigul
|
|
|
Hi Xavier,
We have a workaround for this issue. Please check the Vietnamese homepage now. It is showing the banner image after following the steps: hidden link
1) Go to WPML >> Settings >> Custom XML Configuration
2) Add the following language configuration and save the changes
<wpml-config>
<elementor-widgets>
<widget name="wd_banner">
<conditions>
<condition key="widgetType">wd_banner</condition>
</conditions>
<fields>
<field type="post-ids" sub-type="attachment">image>id</field>
<field type="[Woodmart] Promo Banner - Link" editor_type="LINK" key_of="link">url</field>
<field type="[Woodmart] Promo Banner - Subtitle" editor_type="LINE">subtitle</field>
<field type="[Woodmart] Promo Banner - Title" editor_type="LINE">title</field>
<field type="[Woodmart] Promo Banner - Content" editor_type="AREA">content</field>
<field type="[Woodmart] Promo Banner - Button text" editor_type="LINE">btn_text</field>
</fields>
</widget>
</elementor-widgets>
</wpml-config>
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.
--
Thanks!
Bigul
|
|
|
Hi Bigul,
Thanks!
Tested and worked well.
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.
Regards,
Xavier
|
|
|
Hi Xavier,
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.
https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/
https://wpml.org/documentation/support/multilingual-tools/registering-custom-elementor-widgets-for-translation/
https://wpml.org/documentation/support/language-configuration-files/overriding-language-configuration-files/
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.
<field type="post-ids" sub-type="attachment">image>id</field>
--
Thanks!
Bigul
|
|
|
Hi Bigul,
Great. Thanks for the technical explanation.
Should Woodmart Theme implement this configuration? Or WPML can updated in further updates? Or just need to keep this code in place?
This configuration at "WPML >> Settings >> Custom XML" will be lost once we update the plugin?
Regards,
Xavier
|
|
|
Hi Xavier,
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:
<field type="post-ids" sub-type="attachment">image>id</field>
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.
--
Thanks!
Bigul
|