Development,  WordPress

How to hide toolbar (admin bar)?

Well, I like toolbar (note, that we call it toolbar, since WordPress 3.3 as far as I remember, we called it admin bar before that) and I do not need to hide it, but I know many people wants to. So, here is very simple code to do that thing:

Please note, that this line will hide toolbar only on front-end! If you want to hide it on both frontend and in the admin panel (for god’s sake, why?) do that:


As easy as is.

Leave a Reply

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