Support » Fixing WordPress » Remove User Bar on Login – Serious Issue

  • Resolved thelaw


    I’ve logged in with a regular user account and I now see a user bar at the top of the screen. It looks like the standard WP admin bar that appears on a user’s front end. In addition to messing up my header, it contains links and information I really don’t want my users to see. In fact, I’d rather not have this terrible bar at all. I’ve done a search and can’t find anything that gets rid of it on the front end for users. Right now the site is not usable with this on top (links to analyze the page, SEO, etc.)

    I’ve discovered that there are other plugins leaking information onto the user front end. They don’t intend to make it there but that’s what is happening. I suggest that the WP team add the options to remove the front end toolbar which has become common and not a great addition to the general progress of the web, IMHO.

Viewing 3 replies - 1 through 3 (of 3 total)
  • For those looking for a solution:

    Add this to your wp-content/themes/themename/functions.php file (not in wp-includes/ as is not frequently mentioned)

    add_filter( ‘show_admin_bar’, ‘__return_false’ );

    If you’ve got admin plugins that use the admin toolbar, you may be exposing a great deal of private information to your users.

    I tried your code and now my website cannot be reached. I cannot even access my dashboard. Do you or anyone know how to fix this? Help will be greatly appreciated as my site, as of now, is virtually non-existent.

    nevermind I figured it out

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove User Bar on Login – Serious Issue’ is closed to new replies.