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

9
votes
3answers
9k 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: ...
8
votes
1answer
1k 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 ...
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
6k 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
6answers
16k 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 { ...
5
votes
2answers
223 views

Add visit site to your toolbar instead of being in the dropdown

I'm looking for a way to move the "Visit Site" link from drop-down and add it to the main toolbar, just like in the image shown below:
5
votes
2answers
2k 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
2k 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 ...
5
votes
1answer
5k 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 $wp_admin_bar->remove_menu(...
5
votes
3answers
2k 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; $...
4
votes
5answers
3k views

Remove top admin bar

whenever admin or any other user logs in a top bar menu ads up. Now I made login for everybody, so I do not want this bar. First I added display:none to admin-bar.css, but the main problem is that ...
4
votes
2answers
2k views

How do I add an icon to a new admin bar item?

I have a function that adds items to the WordPress toolbar. For example: $args2 = array( 'id' => 'conversations_unread', 'title' => $visitor['conversations_unread'] . ' &nbsp ', ...
4
votes
1answer
112 views

How do I remove the 'Show Toolbar' option?

I'm using the following code to hide the admin toolbar in the front end: add_filter( 'show_admin_bar', '__return_false' ); But how do I hide this option in wp-admin?
4
votes
1answer
822 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
187 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
897 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
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 ...
3
votes
1answer
26 views

I changed “Howdy” in the admin bar in the dashboard, but when I'm viewing the site it still says Howdy!

I used the following code to replace "Howdy" in the admin bar. This is lovely. However, when I view the site while logged in, the word Howdy reappears. As long as I'm viewing the dashboard, no howdy. ...
3
votes
1answer
2k 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
134 views

Add admin bar link to edit author

I am trying to allow my editors and admins to click to "Edit Author" as they would "Edit Post" or "Edit [Custom Post Type]" from the admin bar when they are on a page like /authors/jdoe (Note: I do $...
3
votes
1answer
963 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
2answers
1k 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
0answers
45 views

List of plugin updates in admin bar

In the admin bar, there is an icon that will tell you if there are plugin updates. Whenever you hover over it, it will say something like "1 plugin update". You have to click on it to go to the update ...
2
votes
3answers
11k views

Admin bar and fixed header issue?

I've styled my header to have a fixed top position. While logged in to wordpress, the wp admin nav bar covers the top section of my header making imposible to access my top navigation. I would like ...
2
votes
1answer
805 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
791 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
2answers
421 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' tab....
2
votes
4answers
3k 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
3answers
491 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
91 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
101 views

Hide admin bar on certain post type

I've got a custom post type - ID productpopup- which I want to hide the admin bar for all users including admin. The theory behind my function is as follows: The post type is selected using ...
2
votes
1answer
81 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
1answer
2k 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 ...
2
votes
3answers
2k 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
3k 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 ...
1
vote
3answers
3k 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
3answers
3k 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
2k 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
3answers
3k views

Remove toolbar option (and set to default to no) in user profile

I don't want users to be able to choose to display the admin bar/toolbar when they log into wordpress. It doesn't have a function for those users. Instead I would like for admin users to have the ...
1
vote
2answers
936 views

Excess White Space Above Admin Bar on Frontend Using Twitter Bootstrap

The problem (Excess White Space Above Admin Bar on Frontend Using Twitter Bootstrap): While logged in and viewing the frontend -- If you shrink your browser down, there is an excess amount of white ...
1
vote
2answers
546 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
2answers
354 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
676 views

Edit specific nodes in WP_Admin_Bar

Is it easily possible to edit links in the WP_Admin_Bar global $wp_admin_bar instance?
1
vote
1answer
241 views

Exclude admin bar from showing avatar customization

I am customizing the WP avatar (to fit a grid) and do not want the avatar customization to show on the admin bar drop down or in the dashboard or on the site (when the admin bar is visible). I have ...
1
vote
1answer
3k 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
2k 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
181 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
1answer
436 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
1k 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.