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: Exception
This topic contains 12 replies, has 1 voice.
Last updated by frankG-4 2 weeks ago.
Assisted by: Otto.
Author | Posts |
---|---|
May 27, 2025 at 9:52 am #17076945 | |
frankG-4 |
Background of the issue: Symptoms: Questions: |
May 28, 2025 at 9:50 am #17082553 | |
frankG-4 |
I did another test: Yes it's true, that I can see and edit the Button Link, when I change something in the German page with elementor und run the translation again. Now I set the right English Link into the Button link. and Finalize the translation. Now the anchor at the end keeps being in English, but the Link itself is changed to German. Instead of |
May 28, 2025 at 5:35 pm #17084871 | |
Otto WPML Supporter since 09/2015
Languages: English (English ) Spanish (Español ) Timezone: America/Argentina/Buenos_Aires (GMT-03:00) |
Hello, To be able to investigate the problem, we need to replicate the issue on a clean installation. Kindly follow the steps below: - Don't restore your site there. Best Regards, |
May 31, 2025 at 1:45 pm #17094232 | |
frankG-4 |
Hi Otto, yes I will do, but I need a little time, as we had a long weekend in Germany. I let you know, when I am ready. |
June 2, 2025 at 12:51 pm #17098107 | |
Otto WPML Supporter since 09/2015
Languages: English (English ) Spanish (Español ) Timezone: America/Argentina/Buenos_Aires (GMT-03:00) |
Hello, Thanks for the heads-up. Best Regards, |
June 2, 2025 at 2:33 pm #17098338 | |
frankG-4 |
Hi Otto, This is not the real Problem, but we have to fix this first, before I can manually edit the Button link to see, what happens. Thanks, Frank |
June 2, 2025 at 4:16 pm #17098740 | |
Otto WPML Supporter since 09/2015
Languages: English (English ) Spanish (Español ) Timezone: America/Argentina/Buenos_Aires (GMT-03:00) |
Hello Frank, Thanks. Check the screenshot attached, please. I I changed the translation of Menü Anker. In fact, I removed the translation, changing it from englishhammer to hammer, and now the links works fine. This word is only visible in the HTML as it's the ID attribute of the section. Anchors need to be the same in both languages because WPML does not know how to translate automatically the anchor part of a URL. Alternatively, we will need to translate the URL manually. Is this a suitable solution for you? Best Regards, |
June 3, 2025 at 9:15 am #17101064 | |
frankG-4 |
Hi Otto, this is exact our Problem. The Menü anchors ARE TRANSLATED in our main site, as they are normal German Words and as they are shown in the Translation. I know, that this is a Problem. Therefore we wanted to change the BUTTON LINK. Normally, when we switch to ALL LINKS VISIBLE, we see the BUTTON LINK after a change in the German page, when the translation has to be done again. This is actually not possible in your Demo site. Do we need to set an additional switch in WPML? I do not see the Button Link in the translation. |
June 3, 2025 at 1:08 pm #17102425 | |
Otto WPML Supporter since 09/2015
Languages: English (English ) Spanish (Español ) Timezone: America/Argentina/Buenos_Aires (GMT-03:00) |
Hello, Thanks for the clarification. I added the following in WPML > Settings > Custom XML configuration: <wpml-config> <elementor-widgets> <widget name="button"> <fields> <field>text</field> <field>link>url</field> </fields> </widget> </elementor-widgets> </wpml-config> Then I made a small change in the original page, and after that the link is available for translation in the translation editor. Then I changed the Test-2 page anchor to "englishhammer" and translated the link in Test 1. As far as I can see, it works as expected. Can you please check it? Best Regards, |
June 3, 2025 at 2:29 pm #17102848 | |
frankG-4 |
Hi Otto, But I think, we have to switch to our staging site now. This is just an example. We have this Problem in other pages as well. In this page hidden link there are these 3 Buttons in German: Now go to the English page: hidden link. The menu anchor is translated to #documents. We translated the Button links to #documents. See the screenshot. It's a little bit unusual, that the links are all underneath each other. In other pages these translations did work, specially in Product pages. This is our main Problem. If you like, I can give you access to this site, as it is a copy of our real site hidden link. |
June 3, 2025 at 3:33 pm #17103177 | |
Otto WPML Supporter since 09/2015
Languages: English (English ) Spanish (Español ) Timezone: America/Argentina/Buenos_Aires (GMT-03:00) |
Hi Frank, Thanks for the detailed explanation. I think the root cause of the problem is how the link is added in the original page. In your staging site, in the translation editor only appears the anchor, not the full link. I think this is why it's not working. In the Sandbox site I've provided, in the editor I was able to translate link with anchor at once. Can you please edit the original page and make sure that the link is "hardcoded". I mean, don't use relative paths nor dynamic links. Include the link to the whole page including the anchor. Then Edit the translation and translate the URL and the anchor (both should appear together in the same field). If this does not help: The information you will enter is private which means only you and I can see and have access to it. **IMPORTANT** Best Regards, |
June 4, 2025 at 8:49 am #17105338 | |
frankG-4 |
Hi Otto, thanks for this explanation. This helps and we will solve our Broken Links with full path. But as we now know how to solve this, we will go this way. Thank you for this clarification. Frank |
June 4, 2025 at 9:41 am #17105601 | |
frankG-4 |
Sorry Otto, I have to reopen the ticket. There is a new Problem. I just wanted to fix the links with anchor and all works fine in DE, EN, FR, but in Spanish translation I do not see the Button Link>URL. I just tested in your demo sandbox and there even is no LINK>URL. Please have a look. |
June 4, 2025 at 1:12 pm #17106517 | |
Otto WPML Supporter since 09/2015
Languages: English (English ) Spanish (Español ) Timezone: America/Argentina/Buenos_Aires (GMT-03:00) |
Hello, I fixed the issue in the Sandbox site, doing the following: You can see it working here: This may happen if the translation job was already created before applying the XML config. Can you try it on your end? Best Regards, |
June 4, 2025 at 1:55 pm #17106833 | |
frankG-4 |
Great, this works. it must have to do with unfinished ES translations - does not have anything to do with the XML config. Button was edited a few Month ago. But anyhow. It is working now. Thank you very much. |