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

How to Hide the “Create an Account” Button on the Sign-In Page

Introduction

The BuddyBoss platform does not provide a built-in option to hide the “Create an Account” button on the sign-in page. You can hide or remove this button by adding a small custom function to your active theme. This guide explains how to hide the “Create an Account” button 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 (?>):
function my_login_css() { ?>
    <style type="text/css">
        .login .login-heading a {
            display: none;
        }
    </style>
<?php }
add_action( 'login_enqueue_scripts', 'my_login_css' );

  1. Click Update File to save the changes.

After this, the “Create an Account” link will no longer appear on the login page.

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 your child theme’s functions.php file. Clear your browser cache or any caching plugins and refresh the login page.

Q: Will this affect other pages or functionality?
A: No. This only hides the link on the login page. The registration functionality remains active for other forms or links.

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.