1. Home
  2. Knowledge Base
  3. Customizations
  4. CSS
  5. Hide the Last Activity in the Member’s Directory for Logged-out Users

Hide the Last Activity in the Member’s Directory for Logged-out Users

Introduction

By default, BuddyBoss does not provide an option to hide the Last Activity in the Members Directory for logged-out users. You can use a simple CSS snippet to prevent non-logged-in visitors from seeing the last activity of members, which can help maintain privacy and a cleaner directory view.

Custom Workaround

Follow the steps below to hide the Last Activity for logged-out users:

  1. Go to BuddyBoss > Theme Options
  2. Under Custom Codes, enable CSS
  3. Append the following:
body:not(.logged-in) .buddypress-wrap .members-list li .list-wrap .last-activity { display: none; }
  1. Save changes.

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

Troubleshooting and FAQs

Q: Will this hide the last activity for logged-in users?

A: No. This CSS only hides the Last Activity for users who are not logged in.

Q: The code doesn’t seem to work. What should I do?

A: Clear your site cache and browser cache. Make sure the CSS is added correctly in Theme Options. If the code is not working, submit a ticket to the support team for assistance.

Q: Does this remove data from the database?

A: No. The data remains intact; this snippet only hides it visually.

Q: Can I customize this to hide other member details for logged-out users?

A: Yes. You can target other elements in the members list with similar CSS. If unsure, submit a ticket to the support team for guidance.

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