Anyone know how to remove the admin navigation links from the frontend? I’ve built a custom theme and when I am logged in to WordPress, WordPress is appending the admin nav bar somewhere.
Leave a Reply
You must be logged in to post a comment.
Anyone know how to remove the admin navigation links from the frontend? I’ve built a custom theme and when I am logged in to WordPress, WordPress is appending the admin nav bar somewhere.
You must be logged in to post a comment.
The admin bar?
Go to Users > Your Profile > Show Admin Bar. Here you can disable it from your theme. If you want to completely disable (remove) it, use one of various plugins, like this.
Or you can remove it by default in functions.php.
Thanks to Yoast (http://yoast.com/disable-wp-admin-bar/)
Just this alone in the functions.php works for me.
For wordpress 3.4.2, none of these workarounds should work. I have sorted out a very simple trick to hide the admin bar!
Just after you call the wp_head(), place this style declaration:
It involves no modification to the functions or whatever. Just plain old css!!
I hope it solves the Googler’s problem in near future 🙂
Put this in your
functions.php
:You can do this by plugin, link below: