Skip Navigation

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.

Tagged: 

This topic contains 11 replies, has 2 voices.

Last updated by tomaC-3 1 day, 23 hours ago.

Assisted by: Otto.

Author Posts
July 2, 2025 at 12:09 pm #17192785

tomaC-3

Background of the issue:
I am trying to modify the links on translated pages to redirect to other pages in the same language. I used the Translate Link Targets option in settings but it didn't work. Navbar links are functioning correctly, but the links on the page itself are not. You can see the issue on this page: hidden link.

Symptoms:
The links on the page redirect to the original language instead of the same language.

Questions:
Why are the links on the page redirecting to the original language instead of the same language?
How can I ensure that links on translated pages redirect to pages in the same language?

July 2, 2025 at 2:26 pm #17193624

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

I visited the page and saw some wrong links (pointing to the default language) but also some links that point to the right language.

Can you please elaborate on how the wrong links were built? Are they Elementor elements? From the core plugin or from an extension? Or from the theme? Which element contains the link?

Best Regards,
Otto

July 2, 2025 at 2:39 pm #17193663

tomaC-3

The links from the navbar are correct but they are implemented directly from the theme.

Most of the wrong links are from elementor like button redirects to the shop page and some from third party elementor extensions ( Card Carousel from Unlimited Elements for Elementor ) .

The product archive from elementor has the right links.

Its a twisted situation, I tried Translate Link Targets options 3 times already.

Any idea?

Thank you!

July 2, 2025 at 3:40 pm #17194102

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

The Unlimited Elements for Elementor plugin is compatible with WPML:
https://wpml.org/plugin/unlimited-elements-for-elementor/

Although there are a few known issues waiting for the author to be solved (linked in the page I've shared).

You can check if the link is "translatable" in the Card Carousel this way:
hidden link

For the Elementor button please try step 3 from this ticket:
https://wpml.org/forums/topic/elementor-button-links-are-not-being-translated/

3. Alternatively, make a minor modification to Page B and retranslate it. This should allow WPML to automatically create the translated link.

Best Regards,
Otto

July 2, 2025 at 5:24 pm #17194408

tomaC-3

Hello again,

I fixed elementor button links via Advanced Translation Editor by manually seaching and editing them.

The link of widget assigned items is "translatable" (I attached an image) but it doesn't appear in the ATE as in the method mentioned earlier.

Any way of manually editing these ones?

Thank you!

unlimited addosn wpml integration.png
July 2, 2025 at 5:27 pm #17194424

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

I would like to request temporary access to your site to take a better look at the issue.
It would be better to a testing site where the issue is replicated.

The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I'll need to temporarily install a plugin called “Duplicator” or "Updraft plus" on your site.
This will allow me to create a copy of your site and your content.
Once the problem is resolved I will delete the local site.

**IMPORTANT**
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields.

Best Regards,
Otto

July 2, 2025 at 6:52 pm #17194583

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks.

I think that we need a language configuration file to make the links translatable.

To do so, I tried to install this plugin:
https://wpml.org/documentation/support/multilingual-tools/#register-for-translation

but it gives a fatal error.

I can't install Duplicator either (check the screenshot attached).

We have a few options:
1. Install the Multilingual Tools plugin and try to follow the documentation to register the element
2. Install the Multilingual Tools plugin and let me know so I can create the configuration file
3. Install Duplicator and let me know so I can make a copy of your site and try it locally
4. I can provide you with a fresh WP install. You should create a page with the element and I can check the problem there.

Let me know what you prefer, please.

Best Regards,
Otto

July 3, 2025 at 9:28 am #17196147

tomaC-3

Hello,

I installed Duplicator on the website.

Let me know if I can help you with anything else.

Thank you!

July 3, 2025 at 12:58 pm #17197314

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

I managed to create a copy with Duplicator, but when importing it locally it fails 🙁

I don't think it's worth it to debug Duplicator.

Can you please install the Multilingual Tools plugin and let me know so I can create and try the configuration file?

I suggest you create a test page with the Card Carousel from Unlimited Elements for Elementor element, pointing to the same links. So I can try it not affecting your site's homepage.

Let me know when it's done, please.

Best Regards,
Otto

July 3, 2025 at 1:18 pm #17197470

tomaC-3

Hello,

I created a page named WMPL Card Carousel with the following link

hidden link

I also installed the Multilingual Tools plugin mentioned.

Thank you!

July 3, 2025 at 4:16 pm #17198895

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

I tried several things, I even reproduce the issue locally from scratch. But I couldn't find a proper way to translate those links. I escalated the problem to our second tier support, they will try to provide a workaround and/or reach the author for a solution.

Best Regards,
Otto

July 4, 2025 at 12:44 pm #17201735

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

We found a solution 🙂

Please try the following:
❌ Please make a full website backup before proceeding ❌

- In WPML > Settings > Custom XML Configuration add this:

<wpml-config>
  <elementor-widgets>
    <widget name="ucaddon_card_carousel">
      <fields>
        <field>button_text</field>
        <field>multisource_items</field>
      </fields>
      <fields-in-item items_of="multisource_items">
        <field>image>id</field>
        <field>image>url</field>
      </fields-in-item>
      <fields-in-item items_of="uc_items">
        <field>title</field>
        <field>content</field>
        <field editor_type="LINK" key_of="link">url</field>
        <field>btn_text</field>
      </fields-in-item>
    </widget>
  </elementor-widgets>
</wpml-config>

- Make a small edit on the original and save
- Resave your translation

Best Regards,
Otto

July 4, 2025 at 3:21 pm #17202497

tomaC-3

Hello,

Yes, it works, thank you!