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”.
—
by
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”.
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.
Access only to all free tutorials per month.
Tutorial Request
Includes code guarantee and coding support.
Access to 10 premium tutorials per month.
Tutorial Request
Includes code guarantee and coding support.
Access to 15 premium tutorials per month.
Monthly Tutorial Request
Includes code guarantee and priority coding support.
Was This Tutorial Helpful?