Home›Support›English Support›[Resolved] On the sub language website, the link on my homepage does not automatically include the URL for the ...
[Resolved] On the sub language website, the link on my homepage does not automatically include the URL for the ...
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is trying to ensure that links on their sub-language website automatically include the URL for the sub-language version. They are using the Themex Pro Addon for the Consalt Theme, which lacks a wpml-config.xml file for making its widgets translatable with WPML. Specifically, the Team widget on the homepage does not automatically include the URL for the sub-language version, causing redirection to the main language version.
Solution: We modified the existing WPML custom XML configuration for the Team widget to include link fields, ensuring they are translatable. After updating the configuration, we edited the Title Link and Social Icon Link of the Team widget on the original homepage, saved the page, and updated the translation. This resolved the issue. We recommend informing the theme author about the need for a proper WPML configuration and suggest using the Multilingual Tools plugin for creating extensive configurations.
Additionally, some custom fields on the site were incorrectly set to be translatable. We advised checking these settings under WPML > Settings > Custom Field Translation and adjusting them as necessary.
If this solution does not apply to your case, or if it seems outdated, please check the related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If issues persist, we highly recommend opening 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.
Background of the issue:
I am trying to ensure that links on my sub language website automatically include the URL for the sub language version. I am working on the site hidden link and want to add links to sub language versions in bulk. I am following the documentation at https://wpml.org/documentation/getting-started-guide/.
Symptoms:
On the sub language website,The link on my homepage does not automatically include the URL for the sub language version, and clicking on it redirects me to the main language version.The second level page is also. like hidden link
Questions:
How can I add links to sub language versions in bulk?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
WPML by default supports all widgets that are shipped with Elementor and Elementor Pro.
It looks like the Elementor Widget used in this section is not a default WordPress Widget.
Have you tried to use the text search field on the top right of the Advanced Translation Editor to search for the URL? If you type "http", you should see all the links available on the site.
Every Custom Elementor Widget must have an XML configuration so that it can be translated using the WPML Translation Editor.
It is the theme author's job to create such a configuration in a wpml-config.xml file in the root directory of the theme or plugin.
If the author does not provide such a config, you can alternatively create one yourself. This config can be stored under WPML > Settings > Custom XML Configuration.
We can further offer a WPML test site on which we can recreate the issue, and I can assist you with a basic configuration for a couple of widgets, but if there are many affected widgets, it would be better to reach the author of those widgets.
How to solve the issue:
Now, WPML by default usually will not display internal links. I suggest you give it a try to find the links inside the translation editor, but it might be the case that they will not show up.
In such case, we can create or adjust the existing custom XML configuration for the plugin that is responsible for the widget.
For example, if you use the attribute
editor_type="LINK"
WPML should recognize the URL as an internal link.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
I would like to request temporary access (wp-admin and FTP) to the website to investigate the issue further.
You can find the required fields below the comments section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.
IMPORTANT
Please be sure to back up your website and database before granting us access.
If you can't see the "wp-admin / FTP" fields, your post and website credentials will be set to "PUBLIC." DO NOT publish the data unless you see the required wp-admin / FTP fields.
The private reply form looks like this: hidden link
Click "I still need assistance" the next time you reply.
Video: hidden link
Please note that we are required to request this information individually on each ticket. We are not permitted to access any credentials that were not specifically submitted on this ticket using the private response form.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
No need to close this ticket.
I have enabled the private reply form again.
Click "I still need assistance" the next time you reply.
Video: hidden link
If this still does not work out, I can offer a WPML test site with Elementor on which you can install the addon that is responsible for the widget, and I can create a custom config for you.
Please try to recreate the issue here using the same widget:
One-Click-Login: hidden link
Leave me a comment once you are done with this task.
I edited the page and set an absolute URL including the domain,Then I re translated the homepage and several pages, And clicked “WPML”--"Settings"--"Update internal links"--"scan now and ajust links",The problem still exists.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
I already adjusted all the original links yesterday and updated the German translation of this page using the WPML Translation Editor, and this still appears to solve the issue.
You can still see working links here: hidden link
There is no need to run "scan now and adjust links".
Only make sure to use absolute links and update the translations with the WPML Translation Editor. If you see the URLs inside the translation editor, do not change them. If you change them, you will receive different outcomes.
The inner pages are fine. But the link to the product module on the homepage still doesn't work, I can't see the URL in the WPML Translation Editor on the homepage hidden link
After adapting the config, I edited the Title Link and Social Icon Link of the Team widget on the original homepage, saved the page, and updated the translation. This solved the issue.
Note that it is the responsibility of the author of this Elementor addon to provide a working configuration.
I suggest you inform the author of the theme about this issue: hidden link
Those fields were all set to translate, and this can cause unexpected issues. You will need to adapt such translations on the WPML Translation Editor, as you translated these settings automatically, and the translations are saved inside the translation memory. The strings for such settings should have identical values in all languages.
Thanks.Some product pages like 'Linear Guide ',I used absolute links and updated the translations with the WPML Translation Editor. but the url still not change. hidden link