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

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 ...
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
7
votes
3answers
3k 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?
6
votes
3answers
4k 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: ...
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
5
votes
2answers
1k views

Modify Admin Bar Link

Starting on line 474 of /wp-includes/admin-bar.php there is a function that is declared as the following: function wp_admin_bar_new_content_menu( $wp_admin_bar ) What it does it generates the + New ...
4
votes
1answer
2k views

remove admin bar new post/link/media sub menu

I wish to remove the sub menus of post/link/media under the add new menu in the admin bar. I can remove the entire menu but I actually only want to remove the sub menu's ...
4
votes
1answer
597 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 ...
3
votes
4answers
175 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 ...
3
votes
3answers
717 views

How can I remove the WP menu from the admin bar?

I never use the WP menu (the logo and its child items) except when I click it accidentally. And it is wasting my time when I navigate per keyboard. Plus, the support page is not our site. How can I ...
3
votes
1answer
833 views

How to Remove All Admin Bar Menu Items?

I've seen techniques on how to remove specific Admin Bar items, but how do we do with those extra menus added by plugins/themes? How to remove all Admin Bar items? Related Q&A's Is the ...
3
votes
2answers
707 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 ...
3
votes
1answer
568 views

How to add admin bar and admin menu or submenu notification bubbles?

What would you recommend to use as far as manipulating the admin bar goes? I was thinking to just add a new admin bar node, and with CSS set a background image for the icon. Then in the node, just ...
3
votes
3answers
1k views

Make 'Howdy, [name]' function as log out button

I have been customising the admin bar in version 3.3 to only have certain custom links with the following added to functions.php: function mytheme_admin_bar_render() { global $wp_admin_bar; ...
2
votes
1answer
785 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 ...
2
votes
6answers
5k views

WordPress admin bar overlapping twitter bootstrap navigation [closed]

I am having an issue with the WordPress admin bar overlapping the twitter bootstrap (2.3.0) nav bar. I have tried this fix: body.admin-bar .navbar-fixed-top { top: 28px; } .navbar .brand { ...
2
votes
1answer
504 views

Creating new page with pre-defined parent page

I have a blog with a very complex page structure (like, 4 levels of hierarchy). When creating new pages, it is very cumbersome to pick the parent page from the drop-down list, as it is constantly ...
2
votes
4answers
415 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 ...
2
votes
4answers
2k views

Change existing label in the admin bar with something else

In the admin bar an admin can create a new post by using the add new drop down. In there I want to change the label Post to something else. How can I do this? I just need the code to make the change ...
2
votes
4answers
1k views

Remove WordPress Toolbar buttons

Is there anyway to remove the 'W' icon from the WordPress toolbar located at the top, when Authors login? I know that an author can uncheck an option for an individual user, but we need to do this ...
2
votes
3answers
438 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 ...
2
votes
1answer
73 views

Question about how global $wp_admin_bar works

So, I ran into an interesting issue while adding some admin menu bar links today. When adding links to a parent menu using something like: // Add the parent menu $wp_admin_bar->add_menu( array( ...
2
votes
1answer
56 views

Modify the WordPress admin bar CSS?

I want to remove how it adds 32px to the top of the HTML tag. It's dumping it there with a STYLE tag right at the end with !important. It's damn impossible to override it, because there are no hooks ...
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 ...
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 ...
2
votes
1answer
861 views

Integrating the Wordpress admin panel with a frontend theme

I am building a Wordpress membership site where I need to collect user generated content in form of: -posts -events -classified ads I am using three plugins to accomplish this. However I need to ...
1
vote
3answers
2k views

Removing admin bar from wordpress dashboard

I'm using wordpress multiste 3.3.1 I'm not gonna update it in the future. So I disabled all upgrade functions. I want to remove the wordpress admin bar from both frontend as well as dashboard. I can ...
1
vote
2answers
2k views

Hide widgets/plugins from dashboard

I have two plugins in the dashboard, SEO Wordpress and Custom Content Type Manager, and for security reasons I want to hide these from dashboard. How to do that? I tried to hide the SEO Wordpress ...
1
vote
4answers
1k views

Disable the admin bar

I have the WP3.4 and I would like to disable the admin bar. I have tried to do that with many ways, but the admin bar do not display. Is possible to do on this version of WP (3.4) or i make a mistake ...
1
vote
1answer
232 views

Change the link of 'Howdy' at the top right

I'd like to change where the 'Howdy' link gets you when you click on it. I have a website with buddypress and instead of getting users to their profile page I want to get them to their 'Activity' ...
1
vote
1answer
69 views

How can I check if the admin bar is visible to the current user?

I'm new to WordPress. I would like to know Is the admin bar visible to all users and roles? If not, how can I check it is visible to the current user?
1
vote
2answers
153 views

How to remove admin bar logo in WordPress using plugin

I'm following the instructions from this page to remove the adminbar wordpress logo and cannot quite understand why this is not working in a plugin I have created. // Hide top left WordPress logo ...
1
vote
1answer
167 views

wp_before_admin_bar_render action not working in back office

This is working great in the front site wp admin bar: add_action('wp_before_admin_bar_render', 'customize_admin_bar'); function customize_admin_bar() { global $wp_admin_bar; if ...
1
vote
1answer
2k views

WP admin bar disappeared

The admin bar suddenly disappeared from the front end side of my site. It is present and works alright at the backend. I thought it could be due to some plugin so I deactivated them one by one and ...
1
vote
1answer
684 views

How to change the Admin-bar's link target?

I'd like to change the admin bar's link target to "_blank". where what should I do? thanks.
1
vote
1answer
518 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 ...
1
vote
5answers
262 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', ...
1
vote
1answer
28 views

Open Admin bar “Visit site” in a new window

Is it possible to create a filter to make in sort that the link in the admin bar to open in a new window. I know that the right-click -> open in a new tab is a common use for us programmers but for ...
1
vote
1answer
342 views

Top admin bar / toolbar not showing even when logged in, but empty top margin showing?

I wrote a theme and the top admin / tool bar is not showing. I still see an empty margin. Any ideas? Here the top margin I never set anywhere in my files. I actually want to show the toolbar ...
1
vote
1answer
2k views

Replace admin bar logo

WordPress 3.8 is out I have the following code to remove admin bar logo. function no_wp_logo_admin_bar_remove() { global $wp_admin_bar; $wp_admin_bar->remove_menu('wp-logo'); } ...
1
vote
1answer
115 views

How can I specify the position of an admin bar item added with $wp_admin_bar->add_menu() or add_node()?

I want to add a link to my site in the admin bar, and make that link the leftmost item in the admin bar. I can add a link with this in a plugin function: $wp_admin_bar->add_menu( array( ...
1
vote
1answer
583 views

Restore original WP admin bar after BuddyPress install [closed]

I want to re-enable the original WP admin bar after installing BuddyPress! define( 'BP_DISABLE_ADMIN_BAR', true ); completely disables the admin bar - don't want that. This question tells us to ...
1
vote
2answers
659 views

Is there a ready-made fix to make the admin bar not obscure content?

I have a situation where the Wordpress 3 Admin Bar (which is cool and I do want to have) obscures some important information on my page. Before I start fiddling with the CSS myself (which I'm sure ...
1
vote
1answer
320 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
726 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 ...
1
vote
2answers
604 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 ...
1
vote
1answer
662 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 ...
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 ...
1
vote
1answer
342 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.
1
vote
2answers
683 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 ...