How to Hide Admin Bar in WordPress

I like the admin bar at the top of my WordPress website, it helps me to navigate easily to some dashboard pages. But based on the design of the theme, some people don’t like the admin bar in the front end. Moreover, some admins don’t want to show the admin bar to the normal users (subscribers) or show admin bar for admin only.

Some people suggest to hide the admin bar with css, but when WordPress provides us hook why don’t we use that? Here are some scenarios and solutions how we can hide the admin bar:


0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *