Skip to content Skip to sidebar

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.

This topic contains 13 replies, has 0 voices.

Last updated by qinglinW 2 weeks, 2 days ago.

Assisted by: Andreas W..

Author Posts
October 11, 2025 at 3:40 am #17475953

qinglinW

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?

October 11, 2025 at 9:18 pm #17476910

Andreas W.
WPML Supporter since 12/2018

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.

Guide:
https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/

We also provide the following plugin, which makes creating such a config easier, but we do not recommend using it in a production environment:
https://wpml.org/documentation/related-projects/wpml-compatibility-test-tools-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.

Example from our docs:

<wpml-config>
    <elementor-widgets>
        <widget name="heading">
            <conditions>
                <condition key="widgetType">heading</condition>
            </conditions>
            <fields>
                <field type="Heading" editor_type="LINE">title</field>
                <field type="Heading: Link URL" editor_type="LINK">link>url</field>
            </fields>
        </widget>
    </elementor-widgets>
</wpml-config>

Best regards
Andreas

October 12, 2025 at 4:08 am #17476985

qinglinW

Can I provide my WP-admin account and FTP to help me set it up?

October 14, 2025 at 10:02 am #17482824

Andreas W.
WPML Supporter since 12/2018

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.

Best regards,
Andreas

October 14, 2025 at 10:33 am #17483053

qinglinW

i can't see the "wp-admin / FTP" fields,

October 14, 2025 at 10:53 am #17483202

qinglinW

Do I need to close the current issue and then open a new one?

October 14, 2025 at 12:22 pm #17483744

Andreas W.
WPML Supporter since 12/2018

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.

October 14, 2025 at 4:30 pm #17484891

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Those are actually not any custom widgets. These are standard Elementor Image widgets.

The issue appears to be that you are using relative URLs like:
/product-category/linear-modules/low-profile-embedded-cfl-series/

If you use an absolute URL including the domain, and update the translations, it works.

October 15, 2025 at 2:20 pm #17487445

qinglinW

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.

October 15, 2025 at 3:35 pm #17487659

Andreas W.
WPML Supporter since 12/2018

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.

October 15, 2025 at 4:36 pm #17487868

qinglinW

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

October 15, 2025 at 7:26 pm #17488338

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

My apologies, indeed, there is an issue on the homepage which relates to the Team widget.

This is a widget from TXDB - Themex Pro Addon For Consalt Theme.

This plugin does not come with a wpml-config.xml file, which means it seems to be using WPML to make its widgets translatable with WPML.

I see at WPML > Settings > Custom XML Configuration already someone added a config for some of the widgets.

For the Team widget, the existing config looks like this:

 <widget name="witr_section_team">
      <fields>
        <field>witr_team_title</field>
        <field>witr_team_subtitle</field>
        <field>witr_team_content</field>      
      </fields>
    </widget>

I have now adjusted this config:

      <widget name="witr_section_team">
      <fields>
        <field>witr_team_title</field>
        <field>witr_team_subtitle</field>
        <field>witr_team_content</field>
        <field editor_type="LINK">witr_team_title_link>url</field>
      </fields>
      <fields-in-item items_of="witr_team_icons">
        <field editor_type="LINK">witr_icons_link>url</field>
      </fields-in-item>
    </widget>

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

If you wish to create extensive configs for these widgets, you can use this plugin:
https://wpml.org/documentation/support/multilingual-tools/registering-custom-elementor-widgets-for-translation/

Side issue:
On your site, some custom fields are set to translateable, which should not be translated.

See WPML > Settings > Custom Field Translation > Show system fields.

Make sure to set those fields only to "Translate" if you need the field values to show up inside the WPML Translation Editor.

Examples:
_elementor_controls_usage
_elementor_data
_elementor_edit_mode
_elementor_page_settings
_elementor_template_type

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.

October 16, 2025 at 4:33 am #17488648

qinglinW

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

October 16, 2025 at 6:56 am #17488840

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

In this example, the problem is inside the original content.

The links on the original page are leading to 404 pages, which is why WPML is not able to create any internal links.

Examples:
hidden link
hidden link

October 16, 2025 at 10:26 am #17489687

qinglinW

Thank you very much!