The MU forums have moved to WordPress.org

Adding Icons to mu-admin-bar (4 posts)

  1. stevejbayer
    Member
    Posted 16 years ago #

    Has anyone been successful with adding icons to the mu-admin toolbar?

    I'm trying to add a icon called write.gif located in mu-plugins>img>
    the mu-admin-bar is in mu-plugins>

    Here's an edit I made on line ~63 of the plugin to add the icon:
    http://pastebin.org/13860

    The original line is:
    http://pastebin.org/13862

    I'm not yet familiar with php arrays, so I'd appreciate a few pointers on how to add icons working to the mu-admin-bar plugin

  2. andrea_r
    Moderator
    Posted 16 years ago #

    I'd do it with CSS myself. Change that strong tag to a div, declare it and use the image you want as the background, tweak spacing and you should be good to go.

  3. stevejbayer
    Member
    Posted 16 years ago #

    Thanks for that tip, it cleared out possible issues so that I could find a quick way to add the icon, which I actually did:

    http://pastebin.org/13868

  4. andrea_r
    Moderator
    Posted 16 years ago #

    HA! Brute force works too. :D

About this Topic

  • Started 16 years ago by stevejbayer
  • Latest reply from andrea_r