Intro
It would be nice to be able to hide the toolbar from non-admin users to clean up the site look and if the user would never have any need to be on the back end.
The information here comes from here.
Setup
The article wants you to use the WP Code plugin. I’m pretty sure that all this does is add to the theme file’s functions.php file.
So, to set this up
- Open functions.php in your theme’s root folder.
- Add the following code and then save:
/* Remove the toolbar for non-admin users */
add_action('after_setup_theme', 'remove_admin_bar');
function remove_admin_bar() {
if (!current_user_can('administrator') && !is_admin()) {
show_admin_bar(false);
}
}


Leave a Reply