• Resolved geokongr

    (@geokongr)


    Hello,

    I was trying to hide the Admin bar in the front-end (website) for my users but still show it in the back-end (wp-admin) but i didn’t find any options.

    I ended up using the following code snippet found in the WordPress function reference which worked OK:

    if ( ! current_user_can( 'manage_options' ) ) {
        add_filter('show_admin_bar', '__return_false');
    }

    Nevertheless i wanted to report it in order to include that option in your plugin which is already powerful (or point me to where it is in case i missed it).

    In the “Global options” there is an option to disable Admin bar but works for both front and back-end, so i suggest to give the option to disable either, i.e. Admin Bar Back end or Admin Bar Front end.

    For the record, if i go to “Admin Bar Front end Options” and disable all the options there, there will still be a blank space which is actually an empty admin bar.

    Kind regards

Viewing 1 replies (of 1 total)
  • Plugin Contributor Frank Bueltge

    (@bueltge)

    Thanks for your helpful hint.

    However the plugin haven’t an option to remove the Admin Bar completely if difference for Front- and back end, only items of the admin bar. If you hide all items, also then is the Admin Bar still active, but without items. But you can hide the Admin Bar for front- and back end always, so use the option inside the ‘Global Options’ to solve that. After activation for an role, is the admin bar not visible in Front- and Back end.

Viewing 1 replies (of 1 total)

The topic ‘Hide Front end Admin bar for simple users’ is closed to new replies.