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
12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 - -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 5 replies, has 2 voices.

Last updated by Noman 1 year, 5 months ago.

Assisted by: Noman.

Author Posts
November 21, 2023 at 1:16 pm #14887069

kevinM-48

i have enabled 5 lang but at front we are able to show only default lang inside lang switcher. can you please check?

November 21, 2023 at 3:07 pm #14888385

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. I’ve visited your site and I can confirm that I can see the issue on the header language switcher and the footer language switcher shows all languages correctly.

1. I examined the source code of the header language switcher and it seems it’s coming from the active theme or some other plugin and not coming from WPML. Could you please try to use WPML Language Switcher from the WPML >> Languages page and see if this resolves your issue?

2. If your theme provides you the option to add content (for example a widget) or some code exactly on the position where you want to display the header language switcher, please try the below steps:

2.1. You can use the below code in PHP files to show a custom language switcher on a specific position:

do_action('wpml_add_language_selector');

2.2. Or you can use the below shortcode:

[wpml_language_selector_widget]

Here is the doc for the custom language switcher:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/adding-language-switchers-using-php-and-shortcodes/

3. If the issue persists, please add the debug report in the Debug Information box. I have also enabled the debug info box for your next reply: https://wpml.org/faq/provide-debug-information-faster-support/

Please let me know if this resolves your issue or if you need further assistance with this issue.

Thank you

November 22, 2023 at 1:41 pm #14898353

kevinM-48

I have added the provided shortcode. the dropdown is working correctly but when i switch the language it is not working. please can you check at urgent basis.

hidden link

November 22, 2023 at 2:01 pm #14898819

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for trying the above steps. I just visited your site and I’m also unable to switch to the secondary language page and it’s redirecting me to the default language home page.

This type of issue usually happens when the pages are not translated into a secondary language or there is some redirection applied on a site.

To take a closer look at this issue, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.

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

=== Please backup your database and website ===

✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is essential.

Thank you

November 22, 2023 at 2:33 pm #14899173

kevinM-48

I have added the translations for other lang as well and now it seems working fine. now we are testing it and will update you further.

November 22, 2023 at 2:57 pm #14899647

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Glad to hear it's working fine after adding a translation, okay sure, please take your time and let me know how it goes.

Thank you

The topic ‘[Closed] Language switcher is not working at frontend’ is closed to new replies.