1. Home
  2. Knowledge Base
  3. Customizations
  4. CSS
  5. Hide the Author Role in Discussions Replies for Logged-out Users

Hide the Author Role in Discussions Replies for Logged-out Users

Introduction

By default, BuddyBoss displays the author role (such as Organizer, Moderator, or Member) in discussion replies. If you want to hide this information for users who are not logged in, there is no built-in setting for this. You can achieve it using a custom CSS snippet.

Custom Workaround

Follow the steps below to hide the author role for logged-out users:

  1. Go to BuddyBoss > Theme Options
  2. Under Custom Codes, enable CSS
  3. Append the following code:
body:not(.logged-in) .bs-reply-header .bbp-author-role { 

    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 author role for logged-in users as well?

A: No. This CSS snippet only hides the author role for users who are not logged in.

Q: Does this affect all forums across the site?

A: Yes. All discussion replies in forums will hide the author role for logged-out users.

Q: Can I hide only specific roles, like Organizer or Moderator?

A: Not with this snippet. For role-specific hiding, custom JavaScript or server-side modifications are needed.

Q: The author role is still showing for logged-out users. What should I do?

A: Clear your site cache and browser cache, then ensure the CSS was added correctly under BuddyBoss Theme Options. If the code is not working, submit a ticket to the support team for assistance.

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.