1. Home
  2. Knowledge Base
  3. Customizations
  4. CSS
  5. Hide the Connection Tab in the Profile Page for Logged-out Users

Hide the Connection Tab in the Profile Page for Logged-out Users

Introduction

By default, BuddyBoss displays the Connections tab on user profile pages, even to logged-out visitors. At this time, there is no built-in BuddyBoss setting to hide the Connection tab specifically for logged-out users. However, you can achieve this behavior using a custom CSS snippet.

Custom Workaround

Follow the steps below to hide the Connection tab on profile pages for logged-out users only:

  1. Go to BuddyBoss > Theme Options
  2. Under Custom Codes, enable CSS
  3. Append the following code:
body:not(.logged-in) li#friends-personal-li.bp-personal-tab { 

    display: none; 

}
  1. Save changes

Note: Any modifications are considered as custom work already. Know more about our Support policy here: https://buddyboss.com/support-policy/

Troubleshooting and FAQs

Q: Will this remove the Connections feature entirely?

A: No. This only hides the Connection tab from logged-out users. Logged-in members will still see and use Connections normally.

Q: Does this affect logged-in users in any way?

A: No. The CSS targets only logged-out users using the body:not(.logged-in) selector.

Q: The Connection tab is still visible after adding the CSS. What should I check?

A: Clear your site cache and browser cache. If the code is not working, submit a ticket to the support team for assistance.

Q: Can I hide the Connection tab for specific user roles instead of logged-out users?

A: Not with CSS alone. Role-based visibility would require custom PHP development.

Screenshots

Without Code:

With Code:

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 for validation purposes and should be left unchanged.
This field is hidden when viewing the form

To speak to our Agency consultant, fill in the form found at our Contact Page.