WordPress Admin Bar

Note of Plugin Discontinuation:

WordPress 3.1 features a built-in admin bar like this, so I will no longer continue development of this plugin. I recommend uninstalling this plugin as it will no longer be maintained.

Description:

This plugin creates an admin bar at the top of your site for logged in users (i.e. you) based on the design of the admin bar located at WordPress.com. It has links to all popular areas of the admin area, saving you time.

It requires no theme editing whatsoever — just upload and activate and you’re done.

Download:

Adding Custom Themes:

If you’re the author of a WordPress theme or just otherwise wish to add an custom admin bar theme of your own, please check out this plugin’s theme API.

Screenshots:

Frequently Asked Questions

Q: Some plugins don’t show up in the admin bar. What gives?
A: The author of the problematic plugin has a is_admin() test when creating their admin menu which means that if you’re outside of the admin area, their plugin won’t register it’s admin menu. Therefore it of course won’t show up in my admin bar. Contact them and ask them to remove the is_admin() test (or do it yourself).

532 thoughts on “WordPress Admin Bar

  1. Pingback: Admin Bar und Space Saving Extension « FFs WP-Notizblog

  2. I would love to see a way to disable the logoff option in the settings, as well as a setting to set the default theme.

    P.S.
    I have made a theme for this fine plugin using it’s API here

  3. For your case though, you can easily add your own link. Just write a tiny plugin that uses the wpabar_menuitems filter to modify the array and add your own link.

    How might you go about this (sorry I am still a noob)
    Thank you in advance.

  4. trm96 on June 29th, 2008 at 11:03 AM wrote:

    I would love to see a way to disable the logoff option in the settings,

    Oh, I didn’t even think of that. Thanks. 🙂

    trm96 on June 29th, 2008 at 11:03 AM wrote:

    as well as a setting to set the default theme.

    Yeah, I’m planning on releasing an update that allows you to set the defaults.

    trm96 on June 29th, 2008 at 11:03 AM wrote:

    P.S.
    I have made a theme for this fine plugin using it’s API here

    Cool! 🙂

    trm96 on June 29th, 2008 at 11:38 AM wrote:

    How might you go about this (sorry I am still a noob)
    Thank you in advance.

    Where do you want the new item?

  5. Roger on June 26th, 2008 at 12:03 PM wrote:

    Hi,

    I think I found a bug: I installed Admin bar in my WordPress MU and two of my mu-plugins (MU tags and signup question) got listed in submenus.

    Thanks for your time!

    What was the solution you found for this issue? Trying to figure it out myself. Also is there a way to make the bar appear for users on blogs that they dont own? (For WPMU) The bar would take them back to their control panel.

  6. Isotope on July 5th, 2008 at 7:31 PM wrote:

    What was the solution you found for this issue? Trying to figure it out myself.

    Remove any like is_admin() checks or whatever that make the admin menus not always register (i.e. not register outside the admin area for example).

    Isotope on July 5th, 2008 at 7:31 PM wrote:

    Also is there a way to make the bar appear for users on blogs that they dont own? (For WPMU) The bar would take them back to their control panel.

    No, not currently and it wouldn’t be an easy fix that you could do.

    I will look into making the modification myself though, but no guarantees.

  7. Thanks a lot! worked like a charm. Ill keep my fingers crossed and check back for possible updates. The admin bar rocks as is though.

  8. May I suggest one improvement? I’d like the bar to be {position:fixed;} instead of absolute. What about adding a switch into settings? This would be very pleasant… mainly when browsing very long pages.

  9. kahi on July 6th, 2008 at 10:46 AM wrote:

    May I suggest one improvement? I’d like the bar to be {position:fixed;} instead of absolute. What about adding a switch into settings? This would be very pleasant… mainly when browsing very long pages.

    It used to be that way, but it caused problems (such as making the cursor not show up in input boxes).

    You can do it yourself via a plugin though. Just hook into wp_head late and output the CSS with an !important.

    trm96 on July 6th, 2008 at 1:58 PM wrote:

    Is it passable to add more than 1 theme in a theme plugin?

    Yes, use the non-theme method (a filter) and pick different stub names for each theme:
    http://www.viper007bond.com/wordpress-plugins/wordpress-admin-bar/theme-api/

  10. > You can do it yourself via a plugin though. Just hook into wp_head late and output the CSS with an !important.
    I know about this option and maybe I will do it so finally, but for some reason I thought that direct integration into the plugin would make more sense… I can’t say why, maybe I dislike long lists of active plugins…

  11. Excellent plugin so far! really appreciated! But also got some issues: cfromsII and nextgen gallery links does not show up in the bar even if they are selected iin the admin menu of adminbar. also some selected options within “manage” dont show up (e.g. redirection of the redirection plugin i use).

    any hints or known issues about this?

    –rgds marcO

  12. Hi, i have a suggest to optimise the Plugin, look at #348 at wordpress-admin-bar.php
    echo '
    #adminmenu,#dashmenu,#user_info,#footer, #sidemenu, #submenu ';
    if ( !file_exists( ABSPATH . 'wpmu-settings.php' ) ) echo ', #dashmenu';
    echo ' { display: none; }
    #wphead{border:none;}
    ' . "\n";

    This looks better for me 🙂

    Thanks for your fine Plugin!

  13. If you hide #user_info, then the “Turbo” linked added in WordPress 2.6 won’t be there. The #footer is at the bottom, so it’s not a big deal plus it adds a little spacing which is nice IMO.

    I’ve come up with a twist on your changes though. I’ll include it in the next version. 🙂

  14. Pingback: My top 5 WordPress plugins | Blog³

  15. Pingback: ‘Perkawinan’ Plugin ‘WP Adminbar’ dan ‘WS Tools Bar’ | Ardee’est Thing in My Life

  16. Pingback: My favourite WP plugins | adlankhalidi.com

  17. Pingback: Dev WP » WordPress Admin Bar

  18. First, can one limit this feature to certain user groups?

    Two, I’m also having a problem showing the gallery in the admin bar.

    thanks

  19. Marc on July 22nd, 2008 at 8:58 AM wrote:

    I have just the same problem like marco – no links for the nextgen-gallery :-/
    Any ideas why?

    The plugin most likely only registers it’s admin menus while you are actually in the admin area. Since my plugin operates outside of the admin area, that gallery plugin isn’t registering it’s menus and therefore they aren’t showing up.

    Contact the plugin’s author and ask them to remove the is_admin() check.

    Mark Adams on July 23rd, 2008 at 1:22 AM wrote:

    First, can one limit this feature to certain user groups?

    Modify the if ( current_user_can('read') ) ... in the plugin (near the top). Change it to the minimum permission you want (manage_options for example for admins only).

  20. Awesome plugin man! Makes managing a blog so much easier.
    One thing, I’ve got heaps of plugins installed and now the
    settings menus scrolls off the page so they can’t be clicked…
    It would be nice to have two columns, might be an idea for a future update? At the moment I just turn off the display of plugin settings that don’t need much updating..
    Apart from that, massive kudos!

  21. Pingback: Loft 75» Blogarchiv » Die Tellerrand-Geheimwaffe

  22. hi! it’s possible show admin bar only level 7+ (editor & administrator)?
    Sorry my bad english, i’m italian…

  23. I was just wondering, I mean all the plugins settigns can only be mde for the currently logged in user, isn’t there a way to set certain defaults for non-admin users or will they simply only see menues that their user class allows them to see ?
    I am just worried they will see links to admin areas where they are not supposed to play around..

  24. nevermind I tested that by logging in as a subscriber, and almost all menus were gone whic his perfect, except I saw 3 plugins menu udner the settigns menu, but when I clicked them I was told I had not sufficient right. which is also good, but how to hide these menus from teh settigns menue if the user has no rights to click them anyway?
    is there someway Ican modify these plugins so they do not show up udner the settigns menu?

  25. The plugin works very well, but the idea would be to add a control options in plugin/adminmenu setting to use the plugin only to the levels chosen (subscribe, editor..)…

  26. ovidiu on August 23rd, 2008 at 5:33 AM wrote:

    I saw 3 plugins menu udner the settigns menu, but when I clicked them I was told I had not sufficient right

    That shouldn’t be happening. The plugins must be incorrectly registering their menus. Can you link me to one or more of the plugins so I can examine their code?

    emmeellep on August 23rd, 2008 at 5:42 AM wrote:

    The plugin works very well, but the idea would be to add a control options in plugin/adminmenu setting to use the plugin only to the levels chosen (subscribe, editor..)…

    That’s planned for a future version. 🙂

  27. oh, and if you are on that site anyway, can you give me a hint, how to fix the theme? I mean I see your plugin inserts a top: 28px; but that doesn’t help me with the background, which ignores this setting… below the black background (on top of the page) there is a menu which is unreadable now, because the black background should also slide down 28px….

  28. sorry to flood your comments, but I answered your question about which plugins gave me trouble, even linked to their homepage, but my comment disappeared. I guess it got filtered as Ihad 3-4 links inside my comment. Please get it back out of your moderation/spam queue as it also contained user/password combo for a testuser so you could see for yourself….

  29. ovidiu on August 25th, 2008 at 3:24 AM wrote:

    check out the menus that are showing under the settings tab.

    That account is a subscriber account, so no Settings show up. 😉

    ovidiu on August 25th, 2008 at 3:24 AM wrote:

    It seems this test user is not even allowed to set up his own settings for the admin bar 🙁

    I’m sure mine shows up for me. Another plugin may be breaking it or maybe it runs off the bottom of your screen.

    ovidiu on August 25th, 2008 at 3:28 AM wrote:

    oh, and if you are on that site anyway, can you give me a hint, how to fix the theme? I mean I see your plugin inserts a top: 28px; but that doesn’t help me with the background, which ignores this setting… below the black background (on top of the page) there is a menu which is unreadable now, because the black background should also slide down 28px….

    http://www.w3schools.com/css/pr_background-position.asp

  30. Viper007Bond on August 25th, 2008 at 1:47 PM wrote:

    That account is a subscriber account, so no Settings show up. 😉

    But they do, thats the point. I know they shouldn’t but I just tested with the test account, and on both FF2.0 and IE6 they show up.
    Viper007Bond on August 25th, 2008 at 1:47 PM wrote:

    I’m sure mine shows up for me. Another plugin may be breaking it or maybe it runs off the bottom of your screen.

    I do not know about this.

    thx for the link 🙂

  31. ovidiu on August 25th, 2008 at 11:35 PM wrote:

    But they do, thats the point. I know they shouldn’t but I just tested with the test account, and on both FF2.0 and IE6 they show up.

    Gotcha.

    I dunno what’s up with the other two plugins. One (or both) of them are improperly coded.

    Mine is supposed to show up for all users, even non-admins. This is because the settings page for my plugin is on a per-user basis. This allows subscribers to configure the plugin for themselves — i.e. show it or not, admin area or not, colors, etc.

  32. Some suggestions here .. for wpmu
    – When guest view bar ..
    * A login box appear instead of links
    * A link to next random blog appear
    – it will be great if u code a rate system to rate blogs through this bar

  33. MazZziKa on August 26th, 2008 at 2:29 AM wrote:

    please make it compatiable with gengo .multilanguage plugin

    My plugin is (hopefully) fully translatable, so I assume it should work fine if you load the language files for this plugin.

    MazZziKa on August 26th, 2008 at 2:32 AM wrote:

    So .. Some suggestions here .. for wp
    – When guest view bar ..
    * A login box appear instead of links
    * and ability to add ads in bar

    Sorry, I won’t be adding any of those. That’s not the point of my plugin.

  34. Pingback: WordPress Plugins: Mehr Komfort für den Admin auf datenschmutz.net

  35. Pingback: Férias e Buscas Bizarras | Nódoa do Universo

Comments are closed.