1. Home
  2. Knowledge Base
  3. Customizations
  4. PHP Functions
  5. How to Change the “Sign In” Text Color on the Login Page

How to Change the “Sign In” Text Color on the Login Page

Introduction

BuddyBoss does not provide a built-in option to change the “Sign In” text color on the login page. However, you can customize this by adding a small CSS snippet via your active theme’s functions.php file. This guide explains how to change the “Sign In” text color on the login page.

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_action( ‘login_enqueue_scripts’, ‘customLoginStyle’ );

function customLoginStyle() {

    $styles = ‘<style>

        .login .login-heading h2 {

            color: #ffffff;

        }

    </style>’;

    echo $styles;

}

Note: Replace #ffffff with any valid HEX color code to match your branding.

  1. Click Update File to save the changes.

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 color did not change.
A: Clear your site and browser cache, then reload the login page. Make sure the code was added to the active theme’s functions.php file.

Q: Can I change other login page text colors as well?
A: Yes. You can extend the CSS inside the <style> tag to target additional elements such as buttons, labels, or links.

Q: Will this affect the front-end of my site?
A: No. This CSS only applies to the WordPress login page.

Q: Can I revert this change easily?
A: Yes. Simply remove or comment out the added code from functions.php and save the file.

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.