Introduction
The login page in BuddyBoss does not provide an option to change the font color of the username and password fields. You can achieve this by adding a small custom function to your active theme. This guide explains how to change the font color of username and password on the login page
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 (?>):
function custom_login_css() {
echo '<style type="text/css">
#loginform input[type=email],
#loginform input[type=text],
#loginform input[type=password] {
color: #000000 !important;
}
</style>';
}
add_action('login_head', 'custom_login_css');
- Click Update File to save the changes.
Troubleshooting and FAQs
Q: The font color didn’t change after adding the code.
A: Make sure the code is added to the active theme’s functions.php file and that your browser cache is cleared.
Q: Can I change the color to a different one?
A: Yes. Replace #000000 with any valid HEX, RGB, or color name you prefer.
Q: Will this affect the registration page as well?
A: This code targets the login form specifically. If your registration form uses the same CSS selectors, it will also apply there.
Q: Is this officially supported by BuddyBoss?
A: No. This is considered custom work.