Some sites want to hide the ability for logged in users to see the admin bar. This is to hide it from users who will not be using the bar. In this video, we will show you how to disable the WordPress admin bar for all users except administrators.
If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos.
Text version of this tutorial:
http://www.wpbeginner.com/wp-tutorial...
Follow us on Twitter:
/ wpbeginner
Checkout our website for more WordPress Tutorials
http://www.wpbeginner.com/
Summary of this Tutorial:
Start by going to your theme area in administrator
Click Editor and find your functions.php and paste the code in
add_action('after_setup_theme', 'remove_admin_bar');
function remove_admin_bar() {
if (!current_user_can('administrator') && !is_admin()) {
show_admin_bar(false);
}
}
Watch video How to Disable WordPress Admin Bar for All Users Except Administrators online without registration, duration hours minute second in high quality. This video was added by user WPBeginner - WordPress Tutorials 04 September 2014, don't forget to share it with your friends and acquaintances, it has been viewed on our site 64,467 once and liked it 72 people.