WordPress.org

Forums

[resolved] Remove User Bar on Login - Serious Issue (4 posts)

  1. thelaw
    Member
    Posted 3 years ago #

    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.

  2. thelaw
    Member
    Posted 3 years ago #

    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.

  3. newark_taylor
    Member
    Posted 2 years ago #

    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.

  4. newark_taylor
    Member
    Posted 2 years ago #

    nevermind I figured it out

Topic Closed

This topic has been closed to new replies.

About this Topic