Tag Info

WordPress contains built in functions for quickly returning values.
They are intended to be used as a quick built in function that returns a common value to a filter hook such as true, false, or an empty array.
__return_false — Returns the Boolean value of false.
__return_true — Returns the Boolean value of true.
__return_empty_array — Returns an empty ...

Yoast's plug-in is actually a very good example if all you want to do is add menus. Basically, the admin bar is just an alternate set of links to the same plug-in admin pages you have in the sidebar. To add the top-level SEO menu, Yoast does the following:
$wp_admin_bar->add_menu( array( 'id' => 'wpseo-menu', 'title' => __( 'SEO' ), 'href' => ...

Try adding this to your CSS file:
body.admin-bar #branding-wrap{top: 28px;}
body.admin-bar #wrapper{margin-top: 145px;}
the body.admin-bardeclaration at the front will make sure that these styles only get applied when the admin bar is visible.

http://vudu.me/88
Has an article about it.
But basically
/* Disable the Admin Bar. */
add_filter( 'show_admin_bar', '__return_false' );
or also
//REMOVE ADMIN BAR
remove_action('init', 'wp_admin_bar_init');
I believe in your functions.php will disable it. Probably a better way than just hiding it thriough css
THe reason you still get the gap with ...

I've not worked with the admin-bar before. However, I found your question interesting and decided to take a look. If you add a function to handle the action hook 'admin_bar_menu' and set the priority to be higher than 70, you will have access to the raw admin_bar_menu nodes where you can modify the properties you are trying to access. Below is a detailed set ...

There is a remove_menu hook for the admin menu bar.
The class you want to hook into $wp_admin_bar , you can see the remove function here and test it out since there is no documentation on it ( line 86), it should work with the submenu ID.
http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/class-wp-admin-bar.php
Since you did not seem to ...

Download the nightly build, and check out these two files;
wp-includes/admin-bar.php
wp-includes/class-wp-admin-bar.php
The class WP_Admin_Bar is essentially the 'API', whilst the file admin-bar.php uses it to build the default bar and fire off a load of hooks.
function my_admin_bar()
{
global $wp_admin_bar;
$wp_admin_bar->add_menu(array(
...

Didn't work for me, but I found a nice fix. In your header.php use the wordpress function to query if the toolbar is displayed, and then create an empty div below the navbar div:
<div class="navbar navbar-inverse navbar-fixed-top">
<?php
// Fix menu overlap bug..
if ( is_admin_bar_showing() ) echo '<div style="min-height: ...

Wordpress SEO
If you want to remove the admin menu:
you can do that with:
function hide_wpseo() {
remove_action('admin_menu', 'zeo_options_menu');
}
add_action( 'init', 'hide_wpseo');
where it will be removed for all users.
WordPress SEO by Yoast
To hide the admin menu:
and the admin menu bar:
one can use:
function hide_yoastseo() {
...

You should be able to just add the filter inside of a conditional:
<?php if ($_GET['hidetoolbar'])
{
add_filter('show_admin_bar', '__return_false');
}
?>
or, since conditionally adding action handlers and filters is sometimes frowned upon, you could add your own function as a filter and then put your conditional inside that:
<?php
function ...

This menu is added in WP_Admin_Bar::add_menus() with an action:
add_action( 'admin_bar_menu', 'wp_admin_bar_wp_menu', 10 );
To remove it take the same action – just one step later. The following code works as a mu plugin or as a regular plugin:
<?php # -*- coding: utf-8 -*-
/**
* Plugin Name: Remove WP Menu From Tool Bar
*/
if ( ! function_exists( ...

It's not well documented, but the add_node and add_menu methods of the WP_Admin_Bar class can be used not only to create new menu or nodes, but also to update an existing menu or node.
So i went ahead and tracked down the code that WordPress initially uses to create that item in the admin bar, replicated it, then made adjustments to the Howdy text and used ...

I just ran into this issue as well, the cause of this is that at 600 pixels wide the admin bar goes from being position:fixed to position:absolute;
When fixed, it is locked to the top of the screen (top:0)
When absolute it is locked to the top of the closest container that contains it. This is the html element by default, but if a parent is defined to have ...

Not complicated, but a little tricky to get timing right.
Something like this should work, but you might need to experiment with priority to get the link to specific position on the bar:
add_action( 'admin_bar_menu', function ( $wp_admin_bar ) {
if ( ! is_admin() ) {
return;
}
/** @var WP_Admin_Bar $wp_admin_bar */
...

This one does the job for us, we use WP3.7.1.
function no_wp_logo_admin_bar_remove() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu('wp-logo');
}
add_action('wp_before_admin_bar_render', 'no_wp_logo_admin_bar_remove', 0);

Yes I recently ran into the situation where I wanted to change the profile link in the user-info section of the admin bar. The problem is that you can only get all nodes, add and remove them. Not edit. And you also cannot modify the $wp_admin_bar->nodes property due it is private.
When easily removing and adding them, you'll lose your order and the whole ...

I'm solving this getting all nodes from the Admin Bar, iterating through them and removing all that doesn't have a parent.
An exception is made to the User Actions menu ("Howdy, user_name"), which needs an extra checking.
add_action( 'admin_bar_menu', 'wpse_76491_admin_bar_menu', 200 );
function wpse_76491_admin_bar_menu()
{
global $wp_admin_bar;
...