# Admin bar only for admins

Source: https://seventhqueen.com/docs/common/admin-bar-only-for-admins/

If you want to show the admin bar just to **Administrator** users, add the following code to ** functions.php** of child theme:

```
add_action('after_setup_theme', 'remove_admin_bar');

function remove_admin_bar() {
if (!current_user_can('administrator') && !is_admin()) {
  show_admin_bar(false);
}
}
```
