I am using a plugin called

Disable WP Admin Bar Removal

The goal : Disable the admin bar (back and frontend).

I really want to disable this bar for the dashboard but if I want to use the dashboard on my phone or tablet, the left responsive menu disapeared. The button of the responsive menu is in the admin bar, that's the problem. Is there a way to change that ?

  • 1
    You should contact the plugin author as this is a issue caused by the plugin May 26, 2014 at 8:22
  • Yes but all that kind of plugins does the same thing
    – Mathieu
    May 26, 2014 at 8:33
  • Please link to the plugin. Note that toolbar is no longer considered "optional" in admin, so removing it there is "crazy hacks" realm. :)
    – Rarst
    May 26, 2014 at 11:59

1 Answer 1


This is a hack and a half, but it does achieve the desired effect.

What this code does is add inline css to the header in admin pages, over 780px width the admin bar is hidden, under that and its shown. So you in effect hide it on desktop and show it on mobile.

Add this to your functions.php file.

add_action('admin_head', 'hide_admin_bar');
function hide_admin_bar() {
     echo '<style>
          @media all and (min-width:780px) {
               #wpadminbar {
               html.wp-toolbar {

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.