Introduction
The BuddyBoss platform does not include a built-in option to hide the Terms and Conditions and Privacy Policy links on the login page. If you want to remove these links from the login screen, you can do so by adding a small custom function to your active theme. This guide walks you through how to hide the Terms and Conditions and Privacy Policy on the login page to simplify the sign-in experience and customize your BuddyBoss site.
Custom Workaround
Before proceeding, make sure you have a complete site backup.
- 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, open Theme Functions (functions.php).
- Add the following code just before the closing PHP tag (?>):
function bb_login_hide_ts() { ?>
<style>
.privacy-policy-page-link {
display: none;
}
</style>
<?php }
add_action( 'login_enqueue_scripts', 'bb_login_hide_ts' );
- Click Update File to save the changes.
Once saved, the Terms and Conditions and Privacy Policy links will no longer be displayed on the login page.
Troubleshooting and FAQs
Q: The Terms and Privacy Policy links are still visible.
A: Ensure the code is added to your child theme’s functions.php file and not the parent theme. Clear any caching plugins and refresh the login page.
Q: Will this remove the actual Terms and Privacy Policy pages?
A: No. This only hides the links on the login page. The pages themselves will remain accessible via their URLs.
Q: Does this affect other areas of the site?
A: No. This CSS only applies to the WordPress login page and does not impact other pages or forms.