I want to set up the language switcher to handle languages without translation in a way that is not currently offered: show the language as a disabled link.
Current options are:
- Skip language
- Link to home of language for missing translations
Is there a similar example that we can see?
Yes, our current website is like that. You can see it here: hidden link
We have 5 languages, and on this pages, only 3 are available. We prefer it this way so that our users don't get surprised when thinking they will switch the page language, to be redirected to the homepage.
Otherwise, you can create a custom language swither for your own needs :
I am sharing some examples that might help you. Just to clarify it is not similar to your issue but you can understand how to manipulate the language switcher.
For a bit of context: our current website is not based on wordpress. It is all static html coded by hand. We are moving it to a WordPress-based cms and thus I'm converting our current website as a theme for the new one, for which we use WPML.
I'm trying to reproduce the same language switcher, this time using WPML.