How to disable language switcher on WordPress login
Are you looking to completely disable the language switcher on WordPress login page?
If yes then in this tutorial we have shared multiple ways using which you can do this easily.
The language switcher dropdown was introduced in WordPress 5.9.
In this feature, if you have multiple language packs installed on your WordPress site then it will show you a site language drop down below the login form that will allow users to select a preferred language when logging in.
First things first, this language selection does not translate or impact the content on your site, it only changes the language of the WordPress admin or dashboard.
This means if you have pages and posts that have content in English and you have other language packs installed then selecting a preferred language using the language switcher will not impact or translate the content.
Also, if you have WordPress installed in a single language then you will not find this language selector or site language drop down on the login page.
Keeping this in mind, lets dive into the tutorial and learn how can you disable language switcher on WordPress login screen.
How to disable language switcher on WordPress login- Step by Step
As mentioned above, you can disable language switcher in WordPress using 2 ways
In this tutorial we have shared both the methods and below we have listed all the topics covered. You can jump to the preferred way by clicking the link
How to disable language switcher on WordPress login using plugin
The easiest way to disable language switcher in WordPress is by installing a plugin.
And for this tutorial we will be using the Disable Login Language Switcher plugin.
This plugin is free to use and can be installed directly from inside your WordPress dashboard and once it is activated it will automatically disable the login drop down on the WordPress login page.
Before we dive into the installation part, it is important to know that I have installed 3 language packs in WordPress.
And the login page looks like the screenshot below.
Now to disable the language switcher on login page using a plugin you will have to head over to Plugins in your WordPress dashboard and click Add New.
On clicking Add New, it will show you all the free plugin that you can install on your site and here you need to search for the Disable Login Language Switcher plugin.
And once found you need to install and activate it.
When you will activate this plugin, it will automatically disable login switcher on WordPress login page.
Before we move forward, it is important to know that you can also disable the site language dropdown on the login page by using another plugin and it is Disable Login Language Selector.
This plugin works exactly the same way as the one we have discussed above and on activating it automatically disables the language selector on login screen.
We have tried both plugins and these work perfectly.
And that’s it you now know how to disable language switcher on WordPress login using plugin.
How to disable language switcher on WordPress login page using code
If you are not willing to use a plugin for this then you can also disable the language dropdown manually by adding the below mentioned code snippet to the functions.php file of the child theme.
add_filter( 'login_display_language_dropdown', '__return_false' );
Before we move forward, it is important to know that this method is only for you if you are comfortable in editing theme files and adding code to them.
In case you are not then I will recommend using any of the plugins discussed above.
Keeping this in mind, to remove the language switcher from the login screen in WordPress using code you need to head over to Appearance in your WordPress admin and then click Theme Files Editor.
Doing this will show you all the theme files and here you need to search for functions.php file.
Once found you need to click it to open and then scroll to the bottom and add the above mentioned code snippet.
See the screenshot below for reference.
After you are done adding the code, click Update File to save the changes and it will disable the language switcher on WordPress login page.
And that’s it you have successfully disabled language switcher on login screen in WordPress without plugin.
Having said that,
I hope you will find this article helpful and are able to easily disable language switcher on WordPress login.
In case you have any queries feel free to reach out and we will be happy to help.
To stay up to date with our content we will recommend you subscribe to our YouTube channel and email list. Also, don’t forget to join our Facebook group.