Remove admin bar WordPress site

If you are building a website and you want to remove the admin bar above the WordPress site you have to read this tutorial. In this tutorial we will explain how this works. It is a simple small piece of code that you had to add to functions.php. The admin bar on the front-end will no longer be visible.

1. Functions.php

In your theme folder is a file called functions.php. You open this file in your editor.

2. Add Code

Between the opening and closing php tags you place the code.

add_filter('show_admin_bar', '__return_false');

Now you save the file. If you go to your WordPress website and if you are logged in the admin bar will no longer be displayed on screen.

Remove admin bar WordPress site
3.5 based on 2 votes
Monarch Social Sharing Plugin Bloom Email Optin Plugin

Get all 6 free WordPress themes Soon more to come!

Free templates. Free updates. Free support.

View our themes