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 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 3 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 2 months ago.

Assisted by: Prosenjit Barman.

Author Posts
May 15, 2024 at 8:42 pm #15632361

paulH-75

I want to show only native names of languages with flag for all the languages. For that Purpose I have used Custom language switchers With the settings as shown in the screenshot.
hidden link

I have also tried to uncheck the "Current language" option on above screenshot. Then it is showing dropdown without any content in it. By Selecting "Native language name" and "Current language" Dropdown is working fine but only in default language which is English. When switching to any other language it is not showing "Native names of languages" instead showing only flags. Below is the screenshot when selecting French Language.

hidden link

Edit Languages page I have added Native name for all the languages translations like showing in below screenshot

hidden link

I am using shortcode in Elementor header [wpml_language_switcher type="custom"][/wpml_language_switcher]

I want to show the similar dropdown as showing on English language.

With Regards
Deepak Chhabra

May 16, 2024 at 6:43 am #15633054

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello Deepak,
Thanks for contacting WPML Support.

I understand the issue you're having. From the screenshots, I can see that the native name of each language has been added properly. Therefore, the name should appear correctly in each language. It is possible that the type parameter in the shortcode hasn't been copied to the translated header template, which is why the name is not showing correctly.

Could you please open the translated header in the editor and ensure that the type parameter is added correctly to the shortcode?

If it is missing, please add the parameter and check again.

However, if the type parameter is already added to the shortcode in the translated header, could you please try adding the "native" parameter to the shortcode like this: [wpml_language_switcher type="custom" native="1"][/wpml_language_switcher]. This should force the display of native language names.

Once it is added to the default header, make sure to update the translation of the header template.

Let me know the update. I will be happy to help if you need further assistance.

Best regards,
Prosenjit

May 16, 2024 at 5:58 pm #15636639

paulH-75

Hello Prosenjit,

Thank you for suggestions. I had already tried these options but still it does not fixed the issue. I have added screenshots to show different settings I tried but still issue is not fixed.

I have tried two different approaches one by using the Elementor's WPML language switcher shortcode and second by placing the raw WPML language switcher's shortcode.

Using Elemetor's Language switcher element.

hidden link screenshot contains text description also.

Using raw wpml shortcode screenshot contains text description also.

hidden link

Both options not fixing the issue of not showing native language names in all other language pages except showing correctly in English default language.

hidden link Correctly showing ( hidden link) in default language's all pages.

hidden link Not showing native language names (hidden link) in any other language's any page.

With Regards
Deepak Chhabra

May 17, 2024 at 10:29 am #15638870

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello Deepak,
Thank you so much for the detailed update.

From the screenshot, the language switcher seems to be configured correctly. Since the native names still not showing in other languages, a closer inspection will be required to understand the root cause of the issue.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated.

You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Looking forward to your response.

Best Regards,
Prosenjit

The topic ‘[Closed] Custom Lang Switcher Showing native language names only in Main language’ is closed to new replies.