Remove WordPress black banner when logged in

This topic contains 1 reply, has 2 voices, and was last updated by  Alex Rollin 4 months ago.

  • Author
    Posts
  • #4963

    Kojo Darden
    Free User
    Post count: 18

    I have a site where I am using Users WP to allow my users to login to the site. However, upon logging in users see the default WordPress banner at the top of the screen (i.e. Howdy **name**). I would still like to see this as the admin, but how do I disable this top bar for users?

    #4965

    Alex Rollin
    Moderator
    Post count: 23250

    That is a WP feature. You can add a code snippet to remove it, using the code snippets plugin from wp.org, like:

    
    if ( ! current_user_can( 'manage_options' ) ) {
     add_filter('show_admin_bar', '__return_false');
    }
    
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Remove WordPress black banner when logged in’ is closed to new replies, this may be for inactivity, please open a new topic if you have a similar question.