The Admin Bar (respectively Toolbar since WordPress 3.3) is the dark band at the top of each site. It is only visible for signed in users in order to quick-administer the site via quick-links.

learn more… | top users | synonyms

1
vote
1answer
353 views

Add class to WordPress admin bar?

How can I to add a wrapper class to the WordPress admin bar? I would like to center the contents to the same width as my theme.
2
votes
3answers
1k views

How to re-enable admin bar with Buddypress active? (BP bar removed) [closed]

How do I force WordPress/Buddypress to use the WordPress admin bar on the frontend? I know that I can disable the BP bar with define( 'BP_DISABLE_ADMIN_BAR', true ); in the config, but the admin bar ...
6
votes
3answers
5k views

How do I remove the admin bar (styling) from frontend only?

When logged in, the admin bar adds the following to my page <head> section: <style media="screen" type="text/css"> html { margin-top: 28px !important; } * html body { margin-top: ...
0
votes
1answer
215 views

What function actually renders the wp_admin_bar ? How can I call it?

What function actually renders the wp_admin_bar? And how can I call it? I want to print out just the nodes / DOM for the actual menu. It would end up rendering something like this: <div ...
1
vote
1answer
540 views

How do I turn off the Admin Bar for all Subscribers?

Maybe this is a stupid question. When a user logins to my Wordpress site with the Subscriber role, they have the WP Admin Bar appearing at the top of the page. The user can go into their dashboard ...
2
votes
4answers
471 views

How to keep theme layout the same when admin gray bar is present?

When I am logged in, there is a gray admin bar on top. My theme layout got distorted by the bar. How to solve the layout problem? Is there a function that can detect user is logged in or not, or use ...
1
vote
5answers
272 views

Problems with removing admin bar

I am trying to remove the admin bar from a theme front end of a theme. I found the following code block: add_filter( 'show_admin_bar', '__return_false' ); remove_action( 'personal_options', ...
7
votes
3answers
4k views

remove “edit your profile” from admin menu bar

How can I remove "edit your profile" submenu under "my-account-with-avatar" admin menu bar, while still keeping the avatar and logout?
0
votes
1answer
771 views

Adding the Admin Bar to a page with a custom template

I created a stripped-down page template to use for my landing pages. But I must have cut too much out of it, because I've lost the WordPress 3.1+ Admin Bar. What functions do I need to call to get ...
1
vote
1answer
330 views

How do I display wordpress admin bar outside wordpress?

Let's say that I have a URL path that is not handled by wordpress,like /custom/ but I want to add the admin bar to these pages. What should I add to these pages in order to make the admin bar ...
1
vote
2answers
738 views

WP Admin Bar shown at the bottom

Suddenly, while I was working, the admin bar (that by default appears at the top) has appeared on the bottom of the page and it is unstyled, it is simply a list of links one below the other. I've ...
1
vote
2answers
758 views

How to show a admin bar menu item only to users with certain capabilities?

I'm trying to add items to the admin bar but only for users with certain capabilities, such as add_movies in a plugin. The problem is that, according to @toscho and @TheDeadMedic, the plugin executes ...
2
votes
3answers
451 views

Adding <select> with javascript to admin bar. Works in Chrome/Safari, not Firefox

I'm trying to add a new menu item to the WordPress admin bar. The sub menu item contains a select drop down to switch themes. In Firefox with href => false it generated <a href=""> and when I ...
1
vote
2answers
632 views

Is there an easy way to move the wp_admin_bar to my own location?

I want to remove the admin bar from the top of the page and actually place it into a custom location within my theme. Question: How would I call wp_admin_bar() inside a custom div. I would also ...
5
votes
1answer
847 views

what is __return_false in filters

I was thinking of removing/hiding admin-bar from my wordpress (3.1.1) installation. I visited following link: http://codex.wordpress.org/Plugin_API/Filter_Reference/show_admin_bar I was surprised ...
4
votes
1answer
612 views

Attaching a navigation menu to the admin bar?

I have seen a number of solutions of how to manually attach links to the new WP admin bar, but I need to make this much easier for my site admins. It occurred to me that the easiest solution would be ...
2
votes
1answer
2k views

Remove admin menu, admin header and admin footer for authors

I would like to remove everything except the “form” in wp-admin/post.php I would like to do this for user role "author" only. The reason for all this: I want the wp-admin/post.php to be a page where ...
0
votes
4answers
751 views

Admin Bar CSS left over after removal

I am using the following code to remove the admin bar (client request). add_filter( 'show_admin_bar', '__return_false' ); Trouble is, it leaves some autogenerating CSS, which places a massive white ...
1
vote
1answer
713 views

Why is the admin bar appearing (on certain pages) for non logged-in users?

The admin bar is appearing for non logged-in users on one of my sites, but only for two specific pages (/work and /contact, for what it's worth). Has anyone heard of this happening before? It appears ...
3
votes
4answers
177 views

How to disable 3.1 “Admin Bar” via script for the admin user?

Every time I create a new site under 3.1, my first trip is to the Users > Admin User profile page to uncheck the "admin bar" checkbox. I'd like to place a script in my theme's functions.php to do ...
5
votes
2answers
1k views

WordPress Admin Bar Moving Links

Is there a way to move the links such as Add New Appearance Comments into one menu
0
votes
1answer
158 views

admin bar disappears completely in 2010 theme

I've installed a plugin to upload local avatars through a front end form to edit user profiles provided by another plugin (user frontend). While the upload and modification of the db seems to work ...
3
votes
2answers
746 views

Admin Bar menu item that executes Javascript but does not reload the page?

I added a menu item to the Admin Bar that executes some Javascript to show debug information. The problem is that clicking this item also reloads the page. How can I prevent this? I was trying to ...
1
vote
2answers
133 views

New Admin Bar Not Functioning

With WP 3.1, as we all know, the admin bar is a new feature on your blog when you are logged in as an administrator, but for some reason on my theme, the admin bar is not there. In it's place is a ...
7
votes
4answers
4k views

hide Wordpress 3.1 admin menu

I just updated one of my blogs to the new wordpress 3.1 and i need to hide the admin menu that shows up on top of the pages. How do i disable it ? thanks
0
votes
1answer
1k views

The new WordPress 3.1 “Admin Menu” isn't appearing on my site or in the Dashboard

WordPress 3.1 added the Admin Bar feature, similar to the one used in WordPress.com websites, which appears on both the website and Dashboard for logged in users (if enabled in your User settings). ...
7
votes
3answers
1k views

Is the new WordPress 3.1 admin bar pluggable and how can I extend it?

How can I extend the functions of the WordPress 3.1 admin bar in my plugins? I am looking for specific hooks and filters to use in adding links or other features to the admin bar. A good example ...