1. Home
  2. Knowledge Base
  3. Customizations
  4. PHP Functions
  5. How to Hide the WP Language Switcher on the Login Page

How to Hide the WP Language Switcher on the Login Page

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.

  1. Go to Appearance > Theme Editor in your WordPress admin dashboard.
  2. Under Select theme to edit, choose your active theme (preferably a BuddyBoss Child Theme), then click Select.
  3. From the Theme Files list, open Theme Functions (functions.php).
  4. Add the following code just before the closing PHP tag (?>):
add_filter( 'login_display_language_dropdown', '__return_false' );
  1. Click Update File to save the changes.

After saving, the language dropdown will no longer appear on the WordPress login screen.

Note: Modifications are typically considered custom work, but we are making an exception in this case. Please review the BuddyBoss Support Policy.

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.

Was this article helpful?

Related Articles

Subscribe to Our Newsletter

Stay In Touch

Subscribe to our Newsletter, and we’ll send you the latest news from BuddyBoss

  • This field is hidden when viewing the form
  • This field is for validation purposes and should be left unchanged.

To speak to our Agency consultant, fill in the form found at our Contact Page.

  • Get Started

    Enter your name and email address to get started with your project...

  • This field is for validation purposes and should be left unchanged.