BuddyBoss Home – Web Support Forums Plugins BuddyBoss Wall Hide options privacy drop down menu

Tagged: 

Viewing 15 posts - 1 through 15 (of 16 total)
  • Question

    #40944
    @neoseeyou

    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

    Answers

    #40951

    Alyssa
    Participant
    @alyssa-buddyboss

    @neoseeyou do you want to remove this selection for all activity types or only for photos?

    #40962
    @neoseeyou

    Hello

    For all activity type would be great.

    Thank you

    #40973

    Alyssa
    Participant
    @alyssa-buddyboss

    @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');
    #40974
    @neoseeyou

    Thank you TJ, unfortunatly it don’t seem to work .

    #41020

    Alyssa
    Participant
    @alyssa-buddyboss

    @neoseeyou can you send me a link to your website and some test credentials?

    #41104
    @ammo

    Hello,

    Can you please let me know the fix as well.

    Thank You

    #41401
    @tadpole

    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

    #41402
    @neoseeyou

    Hello and sorry for the late reply. My client change his mind and want finally to have a open social website.


    @tadpole
    and @ammo try to apply the solution of Tj chester and see by yourself if it’s work.

    @tjchester thank you again for you support!

    #41404

    Alyssa
    Participant
    @alyssa-buddyboss

    @ammo @tadpole please try my solution above. If it does not work please PM me a link and login to the site with the code in place. This code works on my dev server.

    #41464
    @tadpole

    will do thanks

    #41836
    @tadpole

    @tjchester

    This may be a daft question but Which functions.php file?

    #41842

    Alyssa
    Participant
    @alyssa-buddyboss

    @tadpole the functions.php file in your child theme.

    #42559
    @tadpole

    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.

    #42563

    Alyssa
    Participant
    @alyssa-buddyboss

    @tadpole can you send me a link to your site? If registration is closed please PM me login credentials.

Viewing 15 posts - 1 through 15 (of 16 total)
  • The question ‘Hide options privacy drop down menu’ is closed to new replies.