Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are trying to ensure that the links in the section 'Your vacation at the Grubhof' on the main page are translated correctly and point to the appropriate language versions. The links are not translated and still point to the German site, affecting the English and Dutch versions as well.
Solution:
We recommend you go to WPML > Settings > Custom XML configuration and add the following code:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="getwid/image-box" translate="1">
      <xpath type="link">//a/@href</xpath>
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

After adding the code, save and re-translate your page. If necessary, make a small change to the default language page, save, and re-translate. This should ensure that the links are correctly translated.

If this solution does not resolve your issue or 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 the problem persists, please open a new support ticket.

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 12 replies, has 2 voices.

Last updated by Dražen 10 months, 3 weeks ago.

Assisted by: Dražen.

Author Posts
October 10, 2024 at 8:27 am

alexanderM-93

Background of the issue:
I am trying to ensure that the links in the section 'Your vacation at the Grubhof' on the main page are translated correctly and point to the appropriate language versions. The issue can be seen at hidden link.

Symptoms:
The links in the section 'Your vacation at the Grubhof' are not translated and still point to the German site, affecting the English and Dutch versions as well.

Questions:
How can I enter the correct links for the translated pages?

October 10, 2024 at 8:52 am
October 10, 2024 at 8:59 am #16273585

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

You said it doesn't work, but I have just tried our method from share documentation, and I see links just fine you need to translate them correctly, image attached.

Please make a small change to your default language page, save, re-translate and make sure to translate links as well.

Let me know how it goes.

Regards,
Drazen

Screenshot (1).png
October 10, 2024 at 9:19 am #16273770

alexanderM-93

Okay - so why does it not show automatically?

I will definitely not search for everything. I assumed that all fields are shown? Because these fields are only visible if I search for it. And I guess that is some kind of bug and not a feature!

October 10, 2024 at 9:20 am #16273772

alexanderM-93

Also - another field is empty again that has been translated already!

October 10, 2024 at 9:25 am #16273781

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I am afraid, that is how the translation of links works, as explained and shown in the documentation, that I shared:

- https://wpml.org/announcements/2020/02/translating-links-with-advanced-translation-editor/

Since we limit 1 issuer per 1 ticket to keep things clear, for any other new issue, as the one you reported please open a new chat so we can quickly check and try to help with that 🙂

Let me know if any other doubts or I can do to help.

Regards,
Drazen

October 10, 2024 at 9:45 am #16273896

alexanderM-93

Fixed the links but by doing so it will not achieve 100 % translated status and it can't be saved.

October 10, 2024 at 9:52 am #16273910

alexanderM-93

Whatever link I edit in that way - I can not save it afterwards. The wheel keeps spinning.

wheel.jpg
October 10, 2024 at 10:25 am #16274091

alexanderM-93

By using the old editor it works!

October 10, 2024 at 10:29 am #16274153

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

if you mean by using the previous version of Advanced translation editor it works, then it could be you are affected by a bug we have when saving links. We are working on a permanent fix and it will be resolved soon.

In the meantime use previous versions and it should work fine.

I will update you when the fix is released.

Regards,
Drazen

October 10, 2024 at 10:32 am #16274178

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I have tried to apply a workaround fix from our side, please try if it works fine for you now with the new editor version?

Thanks,
Drazen

October 10, 2024 at 10:47 am #16274361

alexanderM-93

Still the same problem when saving.

URLs on the main/start page are still wrong though.

October 10, 2024 at 11:32 am #16274588

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for coming back and sorry for the confusion, it seemed like the issue I explained, since you said it works fine with the old editor. But I checked with the old version and the issue still happens, maybe you meant Classic editor.

Anyway, I checked further, and I was able to replicate the same issue on new test site, with the Image box link from Getwid, and it looks like a compatibility issue.

I have escalated this case to our 2nd tier and will update you when I have some news.

Regards,
Drazen

October 10, 2024 at 1:41 pm #16275487

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

please go to WPML > Settings > Custom XML configuration and add next code:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="getwid/image-box" translate="1">
      <xpath type="link">//a/@href</xpath>
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

save and re-translate your page, if needed make a small change to the default language page, save and re-translate.

It should work fine now and links to be translated.

Regards,
Drazen

October 10, 2024 at 2:53 pm #16275951

alexanderM-93

Works like a charme!

Thanks for your fast solution.