Display Selected Languages in Language Dropdown?
-
Dear Polylang Support,
I am currently using the Polylang plugin to manage multiple languages on my website. However, I am facing an issue with the language dropdown menu, and I would like to request your support on the matter.
Here’s the issue I’m encountering:
I want to control which language options are shown in the dropdown menu based on the current language. Specifically, I want to manually select and display only certain languages for each version of the site. For example:
- In the Lithuanian version, I want users to see only the German and Latvian options.
- In the Latvian version, I want users to see only the Lithuanian and English options.
At the moment, all languages are displayed in the dropdown for every language version, which I would like to limit.
Could you please advise if there is a way to achieve this functionality, either through the Polylang settings or with custom code in functions.php? Any guidance on how to set up the language dropdown to display only the manually selected languages per language version would be greatly appreciated.
Thank you in advance for your assistance.
- You must be logged in to reply to this topic.