Skip Navigation

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.

Our next available supporter will start replying to tickets in about 3.31 hours from now. Thank you for your understanding.

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

Supporter timezone: Asia/Singapore (GMT+08:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Kor 2 months, 1 week ago.

Assisted by: Kor.

Author Posts
July 11, 2024 at 3:34 pm #15936198

WaterBottle

Background of the issue:
I am working on a multilingual website using WPML and would like to know if it's possible to conditionally hide links that point to content which hasn't been translated yet. I am using relative links.

Symptoms:
I could not find an answer in the forum and documentation.

Questions:
Is it possible to automatically hide or remove links in my content if the target of those internal links does not have a translated version available in the current language?

July 11, 2024 at 8:01 pm #15937497

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

I was preparing a report and I noticed that the links on this page hidden link works now. Did you correct it?

Could you replicate the issue again so that I could continue to escalate this for you?

July 12, 2024 at 8:49 am #15941074

WaterBottle

The second link works as expected, yes. However, the first links still point to the German version. Hence, my question if there is a way of either not showing links on translated pages that target untranslated original sites or redirect to index page of translated language.

July 12, 2024 at 8:57 am #15941120

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Regarding your question, "not showing links on translated pages that target untranslated original sites or redirect to index page of translated language."

not showing links on translated pages that target untranslated original sites - No this is not possible.

redirect to index page of translated language - Yes, this can be done using the "Hide Language" feature as explained here https://wpml.org/documentation/getting-started-guide/language-setup/hiding-languages-on-the-front-end/ . However, you can only hide secondary languages and not the primary language.

The topic ‘[Closed] Hiding Links to Untranslated Content’ is closed to new replies.