• Hi there,

    i thought the custom admin bar plugin would replace the wordpress drop-down menu from the admin bar. when i install it, however, it shows up IN ADDITION to the wordpress dropdown. i am running a wordpress network.

    also, it seems to me that i could access the plugin setting only after i had installed and activated the plugin on each individual site (in addition to network-activating it).

    thanks for assistance

Viewing 1 replies (of 1 total)
  • Hey h34dbanger.

    You are correct the plugin is to create a custom admin bar drop down.

    There are a few options to either edit or remove the default WP links. First the manual edits:

    Open the file:

    /wp-includes/class-wp-admin-bar.php

    And around line 456:

    add_action( 'admin_bar_menu', 'wp_admin_bar_wp_menu', 10 );

    Comment it out or just remove the whole line. Now the WP links part is all gone! 🙂

    But….. But……… If you wanted to edit those links to customise yourself, you could just go open up the file:

    /wp-includes/admin-bar.php

    You’ll see it all near the top, here is a short snippet:

    if ( is_user_logged_in() ) {
    		// Add "About WordPress" link
    		$wp_admin_bar->add_menu( array(
    			'parent' => 'wp-logo',
    			'id'     => 'about',
    			'title'  => __('About WordPress'),
    			'href'   => admin_url('about.php'),
    		) );
    	}

    You will note much of the same on there.

    The logo is part of a sprite which can be found here:

    /wp-includes/images/admin-bar-sprite.png

    Both of these options mean updating the code every time you upgrade your WP install.

    And now the final option, which is the easiest, but its yet another plugin………

    I posted that plugin here:

    http://auroral.co.uk/2012/01/12/wordpress-remove-wp-drop-down-links/

    Its free to use.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Custom Admin Bar]’ is closed to new replies.