Syn rants here. ARGGGHHH!

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.

Filed under: quip, scripts Leave a comment
Comments (3) Trackbacks (0)
  1. Check http://www.benwake.com for a better way without coding or plugins :)

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

  3. If you find a official way to disable this stupid bar, please tell me :)


Leave a comment

(required)

No trackbacks yet.