1. Home
  2. Knowledge Base
  3. Customizations
  4. PHP Functions
  5. How to Add White Underline for the “Click here to Register” Hyperlink

How to Add White Underline for the “Click here to Register” Hyperlink

Introduction

When the “Allow non-members to Register” option is disabled, customers may want to guide users to a custom registration form. You can add a white underline to the “Click here to Register” hyperlink by adding a small custom function to your active theme. This guide explains how to add White Underline for the “Click here to Register” Hyperlink.

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 (?>):
function bb_login_custom_css() { ?>

    <style>

        .login-split__entry a {

            color: #fff;

            text-decoration: underline;

        }

    </style>

<?php }

add_action( 'login_enqueue_scripts', 'bb_login_custom_css' );
  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: Will this affect other links on the login page?
A: Yes, this CSS targets all <a> links inside .login-split__entry. You can target only the registration link by using a more specific selector if needed.

Q: Can I change the color of the underline?
A: Yes. Replace #fff with your preferred color code.

Q: Can I revert this easily?
A: Yes. Remove the 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.