This will show the admin bar for admins only and not standard logged in users.

Simply add this function to your functions.php file.


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