How To Remove or Hide The WP Admin Bar On The Front End

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”.


Comments

6 responses to “How To Remove or Hide The WP Admin Bar On The Front End”

  1. Great tip!

    Another way: show_admin_bar(false);

    1. Brad Dalton Avatar
      Brad Dalton

      Where do you put that code Joan?

      Wouldn’t you need to include it in a function?

      1. 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. 🙂

        1. Brad Dalton Avatar
          Brad Dalton

          Yep, works site wide in the functions file. Thanks for that.

          1. Your welcome! Your site is very useful and helps a lot! Happy to add my tiny bit of content.

          2. Brad Dalton Avatar
            Brad Dalton

            Always appreciated Joan.

Leave a Reply

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.