Introduction
The BuddyBoss Theme and Platform do not include a built-in option to hide the WordPress language switcher on the login page. Since this element is part of WordPress core functionality, hiding it requires a small custom code change that affects the login screen’s appearance.
This guide explains how to hide the WP language switcher on the login page using a simple function added to your active theme.
Custom Workaround
Before proceeding, make sure you have a complete site backup.
- Go to Appearance > Theme Editor in your WordPress admin dashboard.
- Under Select theme to edit, choose your active theme (preferably a BuddyBoss Child Theme), then click Select.
- From the Theme Files list, open Theme Functions (functions.php).
- Add the following code just before the closing PHP tag (?>):
add_filter( 'login_display_language_dropdown', '__return_false' );- Click Update File to save the changes.
After saving, the language dropdown will no longer appear on the WordPress login screen.
Troubleshooting and FAQs
Q: The language switcher is still visible.
A: Ensure the code is added to your child theme’s functions.php file and not the parent theme. Clear any caching plugins and refresh the login page.
Q: Can I show the language switcher again in the future?
A: Yes. Simply remove the code or comment it out:
// add_filter( ‘login_display_language_dropdown’, ‘__return_false’ );
Q: Will this affect the WordPress admin language selection?
A: No. This only hides the language dropdown on the login screen. Admin users can still change their language from their profile settings in the dashboard.