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.

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: Africa/Cairo (GMT+02:00)

This topic contains 5 replies, has 2 voices.

Last updated by Osama Mersal 4 months, 3 weeks ago.

Assisted by: Osama Mersal.

Author Posts
September 9, 2024 at 9:22 am #16154837

lauraP-35

Background of the issue:
I am trying to disable the language CTA in the language switcher for a page or blog if its translated version is unavailable on my site hidden link. I have tried using all three options in the Post Type Translation settings of WPML.

Symptoms:
The language CTA in the language switcher is still appearing even when the translated version of a page or blog is unavailable.

Questions:
Is there an option in WPML settings to disable the language CTA in the language switcher for a page or blog if its translated version is unavailable?

September 9, 2024 at 9:57 am #16155031

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) Please set the translation option in WPML-> Settings-> Post Type Translation to "Translatable - Show only translated items".

Afterward, go to WPML-> Languages-> Menu Language Switcher, edit the switcher, and unselect the "Current Language" option.

2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me much information about how your site is configured.

Best regards,
Osama

September 9, 2024 at 2:42 pm #16157179

lauraP-35

I have shared the debug information as requested.

September 9, 2024 at 2:59 pm #16157224

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the debug info. Please let me know if the approach mentioned in my previous reply helped you fix the issue.

Best regards,
Osama

September 9, 2024 at 4:00 pm #16157593

lauraP-35

Yes we have followed your instruction as suggested. But in the language switcher the option "Current Language" can't be changed as we are using dropdown.

See the attached images for your reference.

TJC-Translation-Settings-03.PNG
TJC-LangSwitcher-dd-02.PNG
TJC-LangSwitcher-01.PNG
September 9, 2024 at 4:03 pm #16157651

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

The topic ‘[Closed] Disabling language CTA in language switcher’ is closed to new replies.