Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

Tagged: 

This topic contains 42 replies, has 0 voices.

Last updated by Andreas W. 2 hours, 7 minutes ago.

Assisted by: Andreas W..

Author Posts
August 16, 2025 at 1:52 am #17324329

Andreas W.
WPML Supporter since 12/2018

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

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

On the English homepage, the only issues that I could currently see were inside the Footer.

I went to Content Blocks > All Content Blocks, edited the original Footer, saved and and applied the translation again. This solved the issue. Note that I have yet only update the English translation of the footer. You will need you still update the other translations.

---

If you see another issue, please name me an exact example.

August 16, 2025 at 12:06 pm #17324838

Maximilian Wellner

here for example

hidden link

the button under: "独自のフルサービス定額制" leads to

hidden link

So for some reason, the japanese home page has a button that links to the arabian product version

August 16, 2025 at 3:55 pm #17324912

Andreas W.
WPML Supporter since 12/2018

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

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

I've now seen this issue on the translated homepage pages.

However, if I adjust the link directly on the translation in the Page Builder while using the WordPress Editor and then save the page, the issue is solved.

If I update the page's translation, I can't replicate the issue, which is why I can not confirm any bug.

I would recommend solving the problem this way.

August 16, 2025 at 4:00 pm #17324913

Maximilian Wellner

But if I auto translate hundreds of pages , I can't manually edit the button links in all the translations, this would take dozens of hours.

August 16, 2025 at 4:34 pm #17324924

Andreas W.
WPML Supporter since 12/2018

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

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

So far, you have only mentioned one affected section on the homepage, which has two buttons.

I just fixed it on the English homepage, which took me 2 minutes. Fixing this in all languages should take a maximum of 30 minutes.

At the moment, it honestly looks as if someone has manually adjusted some links.

Here is why:

1) Open any affected translated homepage inside the WordPress Editor.
2) Adjust the two button links to point to the correct URLs.
3) Save the page.

At this point, the issue was fixed on my test. Now, to confirm if this is a bug:

4) Edit the original German homepage, save it again, and then update the translation of the page that you edited earlier.

If the issue would occur again now, then we could investigate further, as in this way we could confirm a bug or a possible compatilbity issue between Uncode and WPML.

Anyhow, after taking this test the correct links remain saved on the English homepage, which means that this is not a bug, and likely some user of the website had manually adjusted these links earlier while pointing them to the wrong productor there used to be a bug on the site on the past, which now does not exist anymore.

We need to be able to replicate the issue and know how to trigger it to take further steps. For now, I can sadly only suggest fixing these issues manually.

Also, please test if internal links for this product work as expected when creating a new test post or page.

August 18, 2025 at 11:40 am #17327591

Maximilian Wellner

Hi,

I can guarantee that one one adjusted these links manually. I did step 4 that you mentioned, but it still links to the arabic pages for some reason.

August 19, 2025 at 7:58 am #17330077

Andreas W.
WPML Supporter since 12/2018

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

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

I am not sure why the workaround does not work for you, as it works on my test.

It is working here now:
hidden link

I adjusted the links in the page, then applied the translation again for testing, and the links remain saved.

On which language do you have issues with adjusting the links manually?

August 20, 2025 at 3:07 pm #17334732

Maximilian Wellner

So there is no chance for an automatic solution? I thought the "translate link targets" tool is specifically designed for this.

August 20, 2025 at 4:41 pm #17335239

Andreas W.
WPML Supporter since 12/2018

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

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

Yes, exactly. This depends on the custom XML Configuration for the custom widget for WP Bakery coming from the Uncode Theme.

We provide the config for Uncode in this case, and the config includes a type=”link” attribute, which will manage the internal linking. We use this on headings, buttons, CTAs, and more.

You can see the config here:
hidden link

Guide on creating such config:
https://wpml.org/documentation/support/language-configuration-files/

---

Please do the following:

1) Create a new page or post with at least one internal link. Make sure that the link refers to content that is translated and published.

2) Translate the page or post

Does the internal linking now work as expected?

If not, let me know, and I will try to recreate the issue to take further steps.

If yes, then I can only suggest manually adjusting the current issue, as they were likely caused due to a user error or caused by a bug that occurred in the past does not occur anymore.

August 20, 2025 at 5:31 pm #17335316

Maximilian Wellner

I followed your steps exactly and now there is clear evidence that this is a bug.
hidden link I created this page with a button that links to our webdesign product.

I translated the page automatically into all languages. Now, when you click the button on translated pages, again it links to some arabic page. Please investigate

August 20, 2025 at 5:40 pm #17335339

Andreas W.
WPML Supporter since 12/2018

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

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

Thank you for your confirmation!

I would like to take a local copy of your site for further investigation, but I need to ask you to first make sure that all components (theme and plugins) are updated.

If the issue persists after running a new test after running all updates, then please let me know, and I will proceed with taking a copy.

August 21, 2025 at 7:44 pm #17338870

Maximilian Wellner

All plugins updated (except 2 which can be either ignored or disabled for testing), and theme updated too. Thank you for your help

August 22, 2025 at 1:36 am #17339232

Andreas W.
WPML Supporter since 12/2018

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

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

It seems like WPML has an issue with automatically adjusting the internal links for custom post types like products when using WP Bakery Page Builder's button widget.

The issue does not occur when testing with posts or pages.

Also, this issue occurs as the WP Bakery Page Builder encodes such links, and WPML uses additional code to make the translation possible.

I might need to escalate this issue internally so that our developers can take a closer look at it. But before I take these steps, I will need to set up a new test site and confirm if this is a general issue. I will do this tomorrow and then get back to you.

Workaround:

Make all links translatable by using the following markup at WPML > Settings > Custom XML Configuration:

<wpml-config>
  <shortcodes>
    <shortcode>
            <tag>vc_button</tag>
            <attributes>
                <attribute encoding="allow_html_tags">title</attribute>
                <attribute encoding="vc_link">href</attribute>
                <attribute encoding="vc_link">link</attribute>
            </attributes>
        </shortcode>
  </shortcodes>
</wpml-config>

After that, edit at least one button on the original page, save the page, open the translation editor, and translate the links.

Downside: All button links will need to be translated.