1. Hide Toolbar from specific users:
Toolbar is showing as default for the users after they login. You can hide Toolbar from specific users by disabling Toolbar option in the user profile.
2. Hide Toolbar from all users (except for admin)
It takes lots of time to hide Toolbar from users one by one. You can hide Toolbar from all users (except for admin) at once just by some lines of code :)
– Install Child Theme (Dashboard >> Eduma >> Child Themes).
– In the functions.php file of the child theme, put the following code:
if ( ! current_user_can( 'manage_options' ) ) {
add_filter('show_admin_bar', '__return_false', 1000);
}
Done! Now Toolbar is hidden from all users.