Skip to content Skip to sidebar

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

Problem:
You are experiencing issues where links on the English version of your website incorrectly redirect to Dutch pages. Additionally, Vacancies photos are not displaying correctly on the English version of the projects page.
Solution:
We recommend adding a custom XML configuration to your WPML settings to ensure proper link redirection and content display:
1. Navigate to WPML > Settings > Custom XML Configuration in your WordPress dashboard.
2. Add the following XML configuration and save:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="kadence/advancedheading" translate="1">
        <xpath>//*[self::h1 or self::h2 or self::h3 or self::h4 or self::h5 or self::h6 or self::p or self::span.wp-block-kadence-advancedheading]</xpath>
            <xpath type="link">//a/@href</xpath>
      <key name="link" type="link"></key>
        </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

3. Make a small change and re-translate.
4. Search for the URL inside the ATE editor and translate.

This solution might be outdated or not applicable to your specific case. 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 issue persists, please open 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.

Tagged: 

This topic contains 4 replies, has 0 voices.

Last updated by Dražen 5 months, 2 weeks ago.

Assisted by: Dražen.

Author Posts
October 28, 2025 at 8:29 am

Sietse

Background of the issue:
I am trying to ensure that links within the English version of my website lead to the correct English pages. Currently, when I click on a link in the text on an English page, it redirects me to the Dutch version of that page. For example, on the Home page EN (hidden link), clicking on 'Discover how we can strengthen your project' sends me to hidden link instead of hidden link. Additionally, I am experiencing issues with the Vacancies photos not showing up in the English version of the projects page (hidden link). Clicking on the photo of the benewakes project reloads the same page instead of directing me to the specific project page (hidden link). The button 'view the project' works correctly, and both the photo and button link work fine on the Dutch page.

Symptoms:
Dutch links appear inside English content, and the Vacancies photos do not show up in the English version. Clicking on certain links reloads the same page instead of directing to the intended page.

Questions:
Why are Dutch links appearing in the English content?
Why do the Vacancies photos not show up in the English version?

October 28, 2025 at 10:06 am #17525394

Dražen
Supporter

Languages: English (English )

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

Hello,

I was able to reproduce the issue in sandbox test site, by further checking your website in my local server.

I have shared your case with 2nd tier and will update when I have some news, note it may take a while.

Regards,
Drazen

October 29, 2025 at 6:54 am #17527933

Dražen
Supporter

Languages: English (English )

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

Hello,

Workaround

Go to WPML > Settings > Custom XML Configuration in your WordPress dashboard.

Add the following XML configuration and save:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="kadence/advancedheading" translate="1">
  		<xpath>//*[self::h1 or self::h2 or self::h3 or self::h4 or self::h5 or self::h6 or self::p or self::span.wp-block-kadence-advancedheading]</xpath>
 			<xpath type="link">//a/@href</xpath>
      <key name="link" type="link"/>
		</gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

- Make a small change and re-translate
- Search for url inside ATE editor and translate

Result: hidden link

Regards,
Drazen

October 29, 2025 at 3:14 pm #17530111

Sietse

Hi Drazen!

Since Kadence does not link to the page ID but rather a custom link, I assume that it is not possible to let WPML detect the underlying structure of the page 'Diensten' and scans for it's German counterpart, correct?

I will try these changes tomorrow!

October 30, 2025 at 7:36 am #17531357

Dražen
Supporter

Languages: English (English )

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

Hello,

in this case if you use custom URL and enter it, yes that is not possible.

Sure, please try and let us know how it goes.

Regards,
Drazen