[Resolved] Links being defaulted to main language after new translation
This thread is resolved. Here is a description of the problem and solution.
Problem: When using WPML with Elementor, after translating a page to secondary languages, any new text added in the original language and updated in translation causes previously saved button links to revert to the original. Solution: To fix this issue, you need to register custom page builder widgets for translation of the Hub theme by Liquid Themes. This involves adjusting the
wpml-config.xml
file in your theme to include the links in the translation process. Here is a step-by-step guide: 1. Check if your Hub theme's by Liquid Themes
wpml-config.xml
file already includes widget translation configurations. 2. Modify the XML configuration to add the button links for translation. For example, add the following field to your button widget configuration:
<field type="Heading: Link URL" editor_type="LINK">link>url</field>
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 our 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.
Thank you for checking. Unfortunately that does not work for us, as its not only the Liquid button but also other Liquid elements, for example as seen in this page hidden link
Is there any way to maybe register those kind of elements and make them translatable?
I noticed that your parent theme already has a wpml-config.xml file. The code registers those themes' widgets for translation. You or the theme author need to adjust the code to add the links to the translation.
For example, I have found the following code for the button:
I went ahead and used the Multilingual Tools plugin to generate an XML config for a few custom Elementor widgets (Liquid button and Liquid content Box from the last page you mentioned).
Thank you for your work. So that means, I should now be able to see these kind of buttons in the advanced translator, right? Because currently, I do not see where I can translate the link.
No, it should be converted automatically when you complete the translation and if a link translation exists. This is because I indicated editor_type="LINK" in the config.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.