Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Hide WordPress User Bar When Logged In

@anonymized-9493778

Inactive

Thanks Robin.

It worked a little too well in my case. On the front end the WordPress Toolbar was also hidden for Administrators. At least in my case.

Here is a code snippet that lets only Administrators see the WordPress Toolbar on the front end of a site. The toolbar is hidden for all other users.
https://support.woothemes.com/hc/en-us/articles/203107607-Hide-WordPress-Admin-Bar-for-Users

add_action(‘after_setup_theme’, ‘remove_admin_bar’);

function remove_admin_bar() {
if (!current_user_can(‘administrator’) && !is_admin()) {
show_admin_bar(false);
}
}

Thanks for your help. This can be added into the documentation overhaul.

Skip to toolbar