When you are signed into your WordPress Dashboard and visit your website -a dark colored bar appears on top of the screen. This 28px high bar is called the Admin bar and it is meant for providing you with quick access to different parts of Admin panel right from your website.
This bar appears only to you and that too only when you are signed into Dashboard. But many people find it annoying because appearance of this bar sometimes make their page elements styled with position:absolute appear a bit out of place (28px to be precise!)
So, a number of people want to get rid of the Admin bar. Here are steps to do so:
- Log into 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 and the Admin bar shall be gone!