- This topic has 15 replies, 5 contibutors, and was last updated 9 years, 5 months ago by .
-
Question
Answers
- The question ‘Hide options privacy drop down menu’ is closed to new replies.
BuddyBoss Home – Web › Support Forums › Plugins › BuddyBoss Wall › Hide options privacy drop down menu
Tagged: privacy
Hi
I want to hide/remove the option “everyone” in the privacy drop down menu when user select level of privacy for a picture for exemple.
Thank you
@neoseeyou do you want to remove this selection for all activity types or only for photos?
Hello
For all activity type would be great.
Thank you
@neoseeyou the easiest way to do this is to add this to functions.php:
function bb_remove_everyone(){
echo '
<script type="text/javascript">
$(document).ready(function(){
$("#bbwall-activity-privacy option:first").remove();
});
</script>
'; }
add_action('wp_footer','bb_remove_everyone');
Thank you TJ, unfortunatly it don’t seem to work .
@neoseeyou can you send me a link to your website and some test credentials?
Hello,
Can you please let me know the fix as well.
Thank You
Hi @tjchester
I came here to ask this exact same question. I want to have privacy set to logged in users by default and I dont want them to be able to select everyone (in fact i would be happy if logged in users was the only option and they couldn’t see it or change it at all)
Has this been resolved for @ammo yet?
If so is there a way to set access by default to logged in only alos and hide the options dropdown?
Thanks
will do thanks
@tjchester
This may be a daft question but Which functions.php file?
Hi @tjchester
The code hasn’t changed anything, still shows all choices in the drop down list and default is still everyone for new posts.
I added it to child theme functions.php.