1. Home
  2. Knowledge Base
  3. Customizations
  4. PHP Functions
  5. How to Hide the Terms and Conditions and Privacy Policy on the Login Page

How to Hide the Terms and Conditions and Privacy Policy on the Login Page

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.

  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_hide_ts() { ?>
    <style>
        .privacy-policy-page-link {
            display: none;
        }
    </style>
<?php }
add_action( 'login_enqueue_scripts', 'bb_login_hide_ts' );

  1. 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.

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 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.

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.