WordPress: How to Remove Admin Bar

How to Remove the WordPress Admin BarSometimes, the best intentions completely miss the mark. This is the case of the new WordPress Admin bar; to me, ita big nuisance that interferes with the development of a template. The WordPress Admin bar appears at the top of your blog if you are logged into WordPress.

You can turn the Admin Bar off on a user-by-user basis by editing a user’s settings. But if you want to turn it off for the whole site, here’s how:

  1. Locate the functions.php file in your blog theme directory; for example /wp_content/themes/your_theme/functions.php.
  2. Insert the following line:
    add_filter( ‘show_admin_bar’, ‘__return_false’ );
  3. Save the file and upload it to your web server.

Important: When you edit the functions.php file, make sure you insert the line before or after an existing function. To locate the beginning of a function, find text that looks similar to the following:

function some_text() {

And then add your line:

add_filter( ‘show_admin_bar’, ‘__return_false’ );

function some_text() {

Share

WordPress Upgrade: Seamless!

I just upgraded my WordPress installation from 2.9 to 2.9.2. I was feeling lucky today, so I used the automatic update option. It worked perfectly, and I completed the update in less than a minute. Kudos to WordPress developers. Warning: If you use the automatic update feature, make sure you back up your WordPress database and all WordPress files first.

Share