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.
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.
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.
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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.