Remove Admin, Control, Dashboard Bar in WordPress

WordPress is a great blogging platform. It is comprehensive, customizable, scalable and full of features. WordPress also provides an Admin Dashboard to control the front end website. When you are signed into your WordPress Dashboard and visit your website, a black color bar appears on top of the screen. This 28px high bar is called the Admin Bar and it is meant for providing you with the quick access to different parts of Admin panel right from the front end of your website.

Admin Bar appears only to you and that too only when you are signed into Dashboard. But many WordPress Developers find it annoying because appearance of this bar sometimes makes their page elements styled with position:absolute appear a bit out of place (28px to be precise!). If you’re not using Admin Bar, you may want to remove it altogether.

A number of people want to get rid of the Admin Bar. It is possible to remove WordPress Admin Bar by deregistering it from functions.php file. Here are steps to do so:

  • Log into WordPress Dashboard
  • Go to Appearance > Editor
  • Open functions.php in editor
  • Add the following lines anywhere in functions.php
wp_deregister_script('admin-bar');
wp_deregister_style('admin-bar');
remove_action('wp_footer','wp_admin_bar_render',1000);

Save your changes in functions.php and the Admin Bar shall be gone!

I hope it was useful. Please feel free to ask me if you have any questions on the topic of how to remove WordPress Admin Bar. I will be happy to try and help you. Thank you for using TechWelkin.

Leave a Comment

Your email address will not be published. Required fields are marked *