1. Home
  2. Knowledge Base
  3. Customizations
  4. PHP Functions
  5. How to Hide the “Create an Account” on the Login Page

How to Hide the “Create an Account” on the Login Page

Introduction

The Login page in BuddyBoss displays a “Create an Account” link by default. If you want to hide this link for all users, you can do so by adding a small custom function to your active theme. This guide explains how to hide the “Create an Account” on the login page.

Custom Workaround

  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, click Theme Functions (functions.php).
  4. Paste the following code just before the closing PHP tag (?>):
function bb_login_customs() { ?>
    <style>
        .login-heading span > a { 
            display: none; 
        }
    </style>
<?php }
add_action( 'login_enqueue_scripts', 'bb_login_customs');

  1. Click Update File to save your 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 “Create an Account” link is still visible.
A: Make sure the code is added to the active theme’s functions.php file and that no other login customization plugin is overriding it.

Q: Can I hide only for certain user roles?
A: Yes. You can wrap the CSS inside a PHP conditional that checks the user role using current_user_can().

Q: Will this affect the registration page itself?
A: No. This only hides the link on the login page. Users can still access the registration page directly via URL.

Q: Can this be reverted 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.