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:
- Go to BuddyBoss > Theme Options
- Under Custom Codes, enable CSS
- Append the following code:
body:not(.logged-in) .bs-reply-header .bbp-author-role {
display: none;
}- Save changes
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.