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
- 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, click Theme Functions (functions.php).
- 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');
- Click Update File to save your changes.
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.