Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist: https://wplearninglab.com/17-point-wp...
Download our exclusive 10-Point WP Hardening Checklist: http://bit.ly/10point-wordpress-harde...
Remove The WordPress Admin Bar - Disable Admin Bar For All Users | WP Learning Lab
add_filter('show_admin_bar', '__return_false');
In this tutorial you're going to learn how to remove the WordPress admin bar. That is the bar that appears at the top of the website whenever anyone is logged in. The admin bar will still be visible in the admin area of your website, but not on any of the public facing pages.
This WordPress customization is actually quite easy to do and I show you two ways to do it. One is through the WordPress admin dashboard. The other is through the File Manager in your hosting account cPanel.
First, let's do it through the WordPress dashboard. The first thing you'll have to do is log into your WordPress site, then hover over Appearance in the left hand menu. In the flyout menu that appears click on Editor.
[If there is no Editor link then you'll have to hide WordPress admin bar through the cPanel File Manager or FTP.]
Once you're in the editor find the functions.php file of your theme. All files in the theme root are listed on the right hand side of the Editor. Click on functions.php to open it.
Paste the following code into the functions.php file:
add_filter('show_admin_bar', '__return_false');
Then save the file. That is how easy it is to disable admin bar, hide admin bar and remove admin bar.
To do this same thing via your hosting cPanel account, log into your hosting account. Click on the File Manager option and open the root of the website you want to work one.
Once the root folder opens double click on wp-content, then double click on themes. Next, double click on the folder of your active theme to open it.
Find the functions.php file, single click on it and click on the Edit button. That will open the file for editing.
Paste the following code into the functions.php file:
add_filter('show_admin_bar', '__return_false');
Then save the file. And you're all done. You now know how to disable WordPress admin bar and hide WordPress admin bar.
I hope this information helps you! If you have any questions leave a comment below or ping me @WPLearningLab on Twitter.
--------------
If you want more excellent WordPress information check out our website where we post WordPress tutorials daily.
https://wplearninglab.com/
Connect with us:
WP Learning Lab Channel: http://www.youtube.com/subscription_c...
Facebook: / wplearninglab
Twitter: / wplearninglab
Google Plus: http://google.com/+Wplearninglab
Pinterest: / wplearninglab
On this page of the site you can watch the video online Remove The WordPress Admin Bar - Disable Admin Bar For All Users | WP Learning Lab with a duration of hours minute second in good quality, which was uploaded by the user WordPress Tutorials - WPLearningLab 18 July 2015, share the link with friends and acquaintances, this video has already been watched 69,944 times on youtube and it was liked by 724 viewers. Enjoy your viewing!