Admin bar is the dark bar with buttons to add content, and manage updates, comments. For regular users, this bar sometimes becomes confusing. To easily hide admin bar, add the following snippet to your functions.php file:

function remove_admin_bar() {
  if (!current_user_can('administrator') && !is_admin()) {
} add_action('after_setup_theme', 'remove_admin_bar');

Leave a Reply

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

Share Share Tweet