I created a tab for my Facebook page using a page on my WordPress website site in an iframe. After I got it setup in the WordPress admin I went to Facebook to add the tab and test the auto-responder. And there it was the Admin Bar.
Why? Because I was logged into my site on another tab. So anytime I am logged into the admin area of my site to write a post or make changes the admin bar would show on that face book page.
I found two ways to turn the admin bar off.
WordPress Admin Method
- Log into the WordPress Admin area.
- Go to Users
- Click Your Profile
- In the Show Admin Bar section uncheck when viewing site
WordPress Filter
To turn off the display status of the Admin bar add the following code to your function.php file
function my_function_admin_bar(){
return false;
}
add_filter( 'show_admin_bar' , 'my_function_admin_bar');
So there you have it! Two ways to get rid of the Admin bar. The first method only removes the admin bar for the selected user. The second method turns off the admin bar for all users.