Support » Plugin: Auto Hide Admin Bar » How to remove the gap at the top of the page when toolbar is removed?

  • Resolved ThorBorne

    (@thorborne)


    Hello,

    I have been trying to remove the toolbar at the top of the page for all users apart from Admin. I have tried so many different plugins and code that just wouldn’t work. So i contacted my hosting provider whom gave me some insight and installed your plugin. They edited the plugin file slightly so that now the toolbar doesn’t show even if you place the cursor there, which is great.
    However, now i have a gap at the top of my page where the toolbar should be, it only affects logged in users however it does make the site look a little messy. What code do i need to add to remove this gap fullstop?

    Thanks in advance for your help,

    https://wordpress.org/plugins/auto-hide-admin-bar/

Viewing 1 replies (of 1 total)
  • Plugin Author Marcel Bootsman

    (@mbootsman)

    Did you disable the toolbar in the user’s profiles?
    Or use add_filter('show_admin_bar', '__return_false'); in your functions.php to disable the toolbart for all users.

Viewing 1 replies (of 1 total)
  • The topic ‘How to remove the gap at the top of the page when toolbar is removed?’ is closed to new replies.