Disable the new admin bar in wordpress

Short URL: http://nznet.info/jM5ZTC

Yep a geeky thing .. today word press updated to version 3.1

It comes with a new “admin bar” that can upset older themes, however disabling it is not that hard (if you know your way around wordpress coding)

 

in your themes folder there is a file called functions.php

add this to the end of the file:


< ?

function loudas_hide_admin_bar_settings() { ?>

<style type="text/css">
    .show-admin-bar { display: none; }
</style>
< ?php }

function loudas_disable_admin_bar() {
    add_filter( 'show_admin_bar', '__return_false' );
    add_action( 'admin_print_scripts-profile.php','loudas_hide_admin_bar_settings' );
}

add_action( 'init', 'loudas_disable_admin_bar' , 9 );

?>

Paul Willard is the owner of this website, and main contributor. Paul has been involved in internet related technologies since 1994 when the internet went commercial in New Zealand.

Paul Willard is a Director at Net Enterprises Ltd, a web development and system administration company in Hamilton, New Zealand. Paul is also frequently involved in business events and get togethers in the region.

For General Ranting (i.e. micro blogging) I prefer to use loudas.net.nz, a private "by invitation only micro-blogging service.

http://twitter.com/terminalpaul http://www.facebook.com/TerminalAddict     Get connected with .