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

Hide the Photos Tab on the Profile Page for Logged-out Users

Introduction

By default, BuddyBoss does not provide an option to hide the Photos tab on a user’s profile page for logged-out users. Using a simple CSS snippet, you can prevent non-logged-in visitors from seeing the Photos tab, helping you control content visibility and improve privacy.

Custom Workaround

Follow the steps below to hide the Photos tab for logged-out users:

  1. Go to BuddyBoss > Theme Options
  2. Under Custom Codes, enable CSS
  3. Append the following:
body:not(.logged-in) li#media-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 photos from the site entirely?

A: No. This only hides the Photos tab from the profile navigation for logged-out users. The photos themselves are not deleted.

Q: Logged-in users can still see the Photos tab, correct?

A: Yes. This CSS specifically targets logged-out users only.

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

A: Clear your site cache and browser cache. If the issue persists, submit a ticket to the support team for assistance.

Q: Will this affect mobile views?

A: No. The snippet works across all screen sizes unless overridden by other custom CSS.

Q: Can this be limited to specific user profiles?

A: Not with this snippet alone. More advanced customization would require additional custom development.


Screenshots

Without Code:

image

With Code:

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