[Resolved] How to display only one flag in language switcher
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues with displaying only one flag in the language switcher on your website, such that when the site is in Croatian, only the English flag is visible, and vice versa. Solution: We recommend following these steps: 1. Navigate to the WPML >> Languages page. 2. Click on the 'Edit language switcher' icon. 3. In the language switcher settings popup, disable the 'Current language' option and press the save button. This adjustment will ensure that only the opposite language's flag is displayed in the language switcher.
If this solution does not resolve your issue, or if it seems outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket at WPML Support Forum.
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.
Can I manage the flags of the language to be visible just one flag? What I mean is that when the web is in croatian language you can see only english flag and opposite.
Thank you for contacting WPML Support. You can achieve it by following the below steps:
1. Go to the WPML >> Languages page.
2. Click on the Edit language switcher icon as you can see in the attached screenshot.
3. Disable the “Current language” from the language switcher settings popup and press the save button as you can see in the attached screenshot.
And now it will display only the opposite language in the language switcher.
Please let me know if this resolves the issue or if you need further assistance with this issue.
Thank you
As the mobile language switcher is added using the Elementor language switcher widget which has a known issue with only showing the opposite language in language switcher.
If the issue persists, 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.
I’ve enabled a private input box for your next reply.
=== 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 really important.
Thank you
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.