• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Technostarry

  • Home
  • Windows 8
  • Android
  • iOS
  • Web Apps
  • Web Browser
  • Hardware
  • About

How to Hide/Disable Admin Bar in WordPress 3.1

February 27, 2011 by Saqib 3 Comments

The new version of WordPress is released some days back and it introduced some new features. This WordPress 3.1 introduces some new functionalities like easy interlinking, new admin color scheme, Admin bar, etc. Also some new features are added for developers, to further utilize the power of this CMS.

Some people may want to hide admin bar in WordPress. The solution is simple. Just follow below steps:

  1. Login to your Dashboard (wp-admin)
  2. Click on your username from the top right side of the screen
    profilepage
  3. As soon as you click on the name, you can see your profile. Now just uncheck “Show Admin bar” options like “when viewing site” and “in dashboard”. Refer below screenshot.
  4. adminbar

    That’s done. You have successfully disabled the Admin bar in WordPress. Please note that with this method, the Admin bar will be disabled for only specific user and not for all users. You can also use a plugin to disable this for all the users.

    Or alternatively, you can do this by adding a simple code in your functions.php file. Just scroll down and add this code, before closing PHP tag i.e. <?php

    show_admin_bar(false);

    This code will remove the Admin bar for all the users.

    Note: If you are using this code, and if you ever change a theme, then you will need to add this code again in the new theme also. Also ensure that you take a backup of functions.php file before editing it, as just a precautionary measure.

Filed Under: WordPress

Reader Interactions

Comments

  1. Kate says

    September 9, 2011 at 8:33 pm

    Your one-line PhP code needs a semi-colon! I.E. ‘ show_admin_bar(false);‘

    Folk without code knowledge’ll just C/P that in there without realizing they need to end the line.

    Thanks for this, though! :D

    Reply
    • Saqib says

      September 9, 2011 at 9:53 pm

      Thanks Kate for correcting me. It seems that I missed that semi-colon.

      Reply
  2. Edvard says

    April 21, 2011 at 12:02 am

    Great tip, thanks a lot! It works like a charm!

    BR

    Reply

Leave a Reply Cancel reply

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

Primary Sidebar

STAY CONNECTED

  • Facebook
  • RSS
  • Twitter
  • YouTube

SUBSCRIBE

Subscribe now to get the latest updates from this blog right to your Inbox

Recent Posts

  • 6 Things to Remember Before Buying a Micro SD Card
  • 5 Best Android Stock Market Apps for India
  • Facebook App Alternatives for Android , and Why You Should Use Them
  • Kindle Oasis vs Voyage vs Paperwhite: Which one to Buy

Footer

Links

  • About
  • Subscribe
  • Contact
  • Advertise
  • Privacy Policy

Books on cloud storage services:

  • Mastering OneDrive And Office Online
  • Mastering Google Drive and Docs (With Tips)
  • Mastering Dropbox with Useful Tips and Apps

Must Read Articles

  • How to Change Default Apps on Android
  • 6 Tips to Increase Battery Life on Android 4.4 KitKat Devices
  • How to Transfer Documents and Files to your Kindle
  • 5 Best Free Offline Dictionary Apps for Android

© Copyright 2016 Technostarry · All Rights Reserved ·