Since a couple of days ago we have available the new version of WordPress, the 5.9 Joséphine whose main feature is the FSE or Full Site Editing.
But it has brought many other features, such as improvements in blocks and typography, the fantastic option of being able to reposition blocks in the list view or improvements in lazy loading. It has also brought a feature that begins to bring us closer to the long awaited multi-language, the language selector in the login to enter the administration part.
The fact is that if our website has only one language, we will probably not need or want this language selector.
But also, if we have modified something in the login page, not having this new element, some things like the ones I found yesterday and today can happen to us; such as a change button “very grown up” or a “shy language selector” and that hides behind the personalization photo.
The obvious solution is to take into account these elements in our customization, which are included in a
div with the class
language-switcher and from there we can place everything to our liking.
We can also hide it by CSS, but of course this is not the ideal option, far from it, since the developers of this feature have provided us with a fantastic filter
login_display_language_dropdown so that we can return a false (or other content) to make this feature disappear.
Remember to put this code in the
functions.php file of your child theme or in your customization plugin:
// Disable WordPress login language switcher. add_filter( 'login_display_language_dropdown', '__return_false' );
Well, if your thing is not the code, not even the code of the gym locker, you can install the plugin Disable Login Language Switcher that does not have any option and the only thing it does is to insert that line in the plugin.
It couldn’t be easier.