Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide admin bar for logged out users


  • atfpodcast
    Participant

    @atfpodcast

    How can I do this in the current version? Then when they login it is there so they can edit etc their profile.

Viewing 4 replies - 1 through 4 (of 4 total)

  • VibeThemes
    Participant

    @vibethemes

    Go to WP admin – Settings – buddypress – options – Show the Toolbar for logged out users , disable it.


    atfpodcast
    Participant

    @atfpodcast

    It is disabled already though.


    VibeThemes
    Participant

    @vibethemes

    If it still does not work, use this code snippet to force it. Add in child theme – functions.php
    add_action('init',function(){ if(!is_user_logged_in()){add_filter( 'show_admin_bar', '__return_false',99 ); });


    atfpodcast
    Participant

    @atfpodcast

    I added that link and it says:
    syntax error, unexpected ‘)’

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar