I was trying to put the favicon of the site in front of it just like the avatar that appears when you are logged in, check this screen shot: http://screencast.com/t/HoIX3RYzvbK
b) The second part from the left, where it says "Blog aleator" should actually be on the far right hand side but I can't position it there. Here is the code that generates it:
I was trying to put the favicon of the site in front of it just like the avatar that appears when you are logged in, check this screen shot: http://screencast.com/t/HoIX3RYzvbK
b) The second part from the left, where it says "Blog aleator" should actually be on the far right hand side but I can't position it there. Here is the code that generates it:
8202 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
WPMU DEV Fanatic
—
17th June 2011 (11 months ago)
#
Hi Ovidiu,
That's a lot of menu bar customization! I haven't tried customizing that menu bar as yet but I'll take a look into this once a get a moment. I'll ask a few of the guys over here if they might have a few pointers as well.
You'll also want to get a 16x16 version of your favicon to keep it from being cropped.
For the second item you could just add another CSS ID to float it right - but this will put it to the right of the search bar and I'm not sure if that's what you're looking for:
For the final item, both snippets worked for me. The difference is that wp_before_admin_bar_render is called very late on the footer actions so that it will render after anything else being added to the footer.
it all worked out perfectly!
I'll have to resize the icon though as you said and the issue with the random link being on the right of the search bar is fine, I will simply replace the text with a dice, that should explain what it does and replace hte long text with a small icon :-)
Responses (9)
Member — 16th June 2011 (11 months ago) #
while copy pasting this, I realized that for a) using background isn't the best solution. any other ideas?
WPMU DEV Fanatic — 17th June 2011 (11 months ago) #
Hi Ovidiu,
That's a lot of menu bar customization! I haven't tried customizing that menu bar as yet but I'll take a look into this once a get a moment. I'll ask a few of the guys over here if they might have a few pointers as well.
Cheers!
David
Sales & Support Lead — 17th June 2011 (11 months ago) #
Hiya,
Well, the first one can be done with a bit of CSS like so:
You'll also want to get a 16x16 version of your favicon to keep it from being cropped.
For the second item you could just add another CSS ID to float it right - but this will put it to the right of the search bar and I'm not sure if that's what you're looking for:
For the final item, both snippets worked for me. The difference is that wp_before_admin_bar_render is called very late on the footer actions so that it will render after anything else being added to the footer.
I'm not sure why it wouldn't be working for ya.
Member — 19th June 2011 (11 months ago) #
thanks mason :-)
it all worked out perfectly!
I'll have to resize the icon though as you said and the issue with the random link being on the right of the search bar is fine, I will simply replace the text with a dice, that should explain what it does and replace hte long text with a small icon :-)
Sales & Support Lead — 19th June 2011 (11 months ago) #
Woohoo :)
Glad it all worked for ya.
Member — 20th June 2011 (11 months ago) #
check it out: http://zice.ro/ quite nice I think. will have to edit those icons a bit better but for now I'm happy :-)
Member — 15th August 2011 (9 months ago) #
haha, I see this inspired you to make your own plugin: http://premium.wpmudev.org/project/custom-admin-bar
so I was wondering whether this plugin also allows us to remove links from the admin bar or only add new ones?
does it allow us to chose the position where our extra menu items appear? i.e. left side, right side, custom order, etc?
does it have an option to disable the search field?
Sales & Support Lead — 17th August 2011 (9 months ago) #
Ours is actually much simpler than what you've done Ovidiu :)
It just adds a new top-level menu to the far-left and provides for dropdown of links. Yours is way cooler ;)
Member — 17th August 2011 (9 months ago) #
:-) I was just wondering if I can ditch my code snippets and with your plugin - thanks!
Become a member