How To Remove or Hide The WP Admin Bar On The Front End There’s at least 3 ways you can remove the admin bar or hide it on specific pages. A forum member asked: Hello, I’m trying to hide the admin bar on a page called “Registration”. Register for full access
Joan says November 10, 2013 at 8:06 am Great tip! Another way: show_admin_bar(false); Log in to Reply
Brad Dalton says November 10, 2013 at 8:30 am Where do you put that code Joan? Wouldn’t you need to include it in a function? Log in to Reply
Joan says November 10, 2013 at 8:33 am In functions.php works fine. Or in a plugin, so it does not depends on the theme. No, it doesn’t need to be in a function. 🙂 Log in to Reply
Brad Dalton says November 10, 2013 at 8:40 am Yep, works site wide in the functions file. Thanks for that. Log in to Reply
Joan says November 10, 2013 at 8:43 am Your welcome! Your site is very useful and helps a lot! Happy to add my tiny bit of content.
Great tip!
Another way: show_admin_bar(false);
Where do you put that code Joan?
Wouldn’t you need to include it in a function?
In functions.php works fine. Or in a plugin, so it does not depends on the theme.
No, it doesn’t need to be in a function. 🙂
Yep, works site wide in the functions file. Thanks for that.
Your welcome! Your site is very useful and helps a lot! Happy to add my tiny bit of content.
Always appreciated Joan.