28Sep/103
wpadminbar vs godsyn.com
I play around with wordpress nightlies because I like living on the edge, breaking my own site, and fixing buggy code. Recently, in the latest nightly release wordpress decided I need an administration bar along the top of my pages. This only displays when logged in, but destroyed my theme. I do not know the official name of this bar, but it has an ID of "wpadminbar". After seeking plug-ins and settings to no avail and being let down by google, I turned to grep. The resolution is simple. To remove the bar, open wp-settings.php and comment out the following line:
require( ABSPATH . WPINC . '/admin-bar.php' );
becomes
//require( ABSPATH . WPINC . '/admin-bar.php' );
Note: If you know of an official way to disable "wpadminbar" or make it more theme friendly, please share.
March 9th, 2011 - 05:16
Check http://www.benwake.com for a better way without coding or plugins :)
November 26th, 2010 - 13:44
I’ve dropped in all of these, but I haven’t checked which of them are really neccessary :)
remove_action( ‘wp_head’, ‘wp_admin_bar_header’ );
remove_action( ‘wp_head’, ‘wp_admin_body_style’);
wp_deregister_script( ‘admin-bar’ );
wp_deregister_style( ‘admin-bar’ );
remove_action( ‘init’, ‘wp_admin_bar_init’, 1000 );
remove_action( ‘wp_footer’, ‘wp_admin_bar_render’, 1000 );
Martin.
September 28th, 2010 - 08:33
If you find a official way to disable this stupid bar, please tell me :)