Skip Navigation

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

Problem:
The client translated a landing page and found that a specific CTA button, labeled 'Shop' in English and 'Butik' in Danish, did not point to the correct translated page. Despite scanning link targets in WPML settings, the issue persisted. The expected behavior was for the button to lead to the Danish version of the Shop page (/da/butik), but it redirected to the original page (/butik/).
Solution:
We reviewed the translation settings and discovered that the URL needed manual translation in the Advanced Translation Editor, as it was not automatically translating due to the target being an archive rather than a standard page. We manually translated the URL in the translation editor. For further guidance on translating URLs, shortcodes, and HTML attributes using the Advanced Translation Editor, please visit https://wpml.org/faq/how-to-translate-urls-shortcodes-and-html-attributes-using-the-advanced-translation-editor/#translating-internal-links.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your 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 further assistance is needed, 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.

This topic contains 0 replies, has 0 voices.

Last updated by Bruno Kos 2 weeks, 1 day ago.

Assisted by: Bruno Kos.

Author Posts
November 28, 2024 at 10:22 am

magneF-2

Background of the issue:
(I wrote this in English, but for some reason, it was translated into Danish. )

Jeg har oversat en landingsside. En specifik CTA, knappen for Shop eller på den oversatte side 'Butik', peger ikke mod den korrekte oversatte side. Jeg har allerede scannet linkmål i WPML / Indstillinger, men det løste ikke problemet. Link til en side, hvor problemet kan ses: hidden link

Symptoms:
Når jeg klikker på 'butik' eller CTA'en, forventede jeg at blive ført til den danske version af Shop-siden, /da/butik, men i stedet bliver jeg ført til den oprindelige side /butik/.

Questions:
Hvordan kan jeg få CTA'en til at linke til den korrekte oversatte side?
Er der en indstilling i WPML, jeg har overset, der kan løse dette problem?

November 28, 2024 at 10:47 am
November 28, 2024 at 10:50 am #16454379

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

Can you check now? I found this URL in the translation editor and translated it.
https://wpml.org/faq/how-to-translate-urls-shortcodes-and-html-attributes-using-the-advanced-translation-editor/#translating-internal-links

I think these haven't translated automatically as it seems that hidden link is not a page in fact, but an archive for which translation does not exist in database, even if the translated URL exists and is available through language switcher.

butik.jpg