Introduction
By default, BuddyBoss does not provide a built-in option to hide the Download button for photos and videos posted in the activity or news feed, including Public Group feeds, when users are logged out. If you want to prevent logged-out visitors from downloading media content, you can achieve this using a custom CSS workaround.
Custom Workaround
Follow the steps below to hide the download buttons for photos and videos in feeds for logged-out users:
- Go to BuddyBoss > Theme Options
- Under Custom Codes, enable CSS
- Append the following code:
body:not(.logged-in) .activity-list a.download-media,
body:not(.logged-in) a.download-video {
display: none;
}- Save changes
Troubleshooting and FAQs
Q: Will this hide the download button for logged-in users as well?
A: No. This CSS specifically targets logged-out users only. Logged-in users will still see the download buttons.
Q: Does this apply to both the main activity feed and group feeds?
A: Yes. The snippet applies to photos and videos posted in the main activity or news feed and in Public Group feeds.
Q: Will this prevent users from downloading media entirely?
A: No. This only hides the download button in the interface. It does not restrict direct file access at the server level.
Q: The download button is still visible after adding the CSS. What should I do?
A: Clear your browser cache and any site or plugin caching. If the code is not working, submit a ticket to the support team for assistance.
Screenshots
Without code:
With code: