Introduction
By default, BuddyBoss does not offer an option to restrict document download for logged-out users. You can use a CSS snippet to hide the download buttons, ensuring only logged-in members can access them and keeping your content secure.
Custom Workaround
- In your WordPress admin, go to BuddyBoss > Theme Options
- Under Custom Codes, toggle Enable CSS to On
- Paste the following CSS:
body:not(.logged-in) #media-folder-document-data-table .media-folder_action__list .download_file,
body:not(.logged-in) #media-folder-document-data-table .media-folder_action__list .copy_download_file_url,
body:not(.logged-in) #buddypress.bb-media-model-wrapper.document-theatre .activity-list.bp-list .download-document {
display: none;
}- Click Save Changes
Troubleshooting and FAQs
Q: Logged-out users can still see the download buttons, what should I check?
A: Clear your site cache, caching plugin, or CDN cache. Ensure the CSS was pasted exactly as shown and that Enable CSS was turned on before saving
Q: Will this hide downloads for all document types?
A: Yes. This CSS targets all document download buttons for logged-out users in activity feeds and media folders
Q: Can I allow downloads for specific users or roles?
A: This CSS only differentiates between logged-in and logged-out users. For role-specific restrictions, a plugin or custom PHP code would be required
Q: Who can I contact for further assistance?
A: Submit a support ticket through your BuddyBoss account dashboard for personalized help