Adding more links to the tool bar

So what you need to do is repeat what you’re doing, and we’ll use a foreach loop to achieve it I’ll give you an example of code that basically does what you need, but it creates an array of arrays. You initially created array called $args which represented a single link, but you need to … Read more

Disabling the Admin Bar | Where does code go?

This would go in your theme’s functions.php file. This is a small tweak, but things to remember are that: If you ever change your theme, you’ll need to remember to copy this over to the new theme It’d be better to put these types of “system tweaks” into your own plugin, which you can read … Read more

Display Admin Bar when Logged

Can you reproduce this error in a clean install? Have you installed some new plugins in that site lately? Have you tried to deactivate all contrib plugins and themes and see if the error persists when only core is active? I fear we need some extra info to be helpful 🙁

Admin and Toolbar on the bottom, how to dropup menus?

you can move admin toolbar to bottom using this function add to functions.php in current themes: function fb_move_admin_bar() { echo ‘ <style type=”text/css”> body { margin-top: -28px; padding-bottom: 28px; } body.admin-bar #wphead { padding-top: 0; } body.admin-bar #footer { padding-bottom: 28px; } #wpadminbar { top: auto !important; bottom: 0; } #wpadminbar .quicklinks .menupop ul { … Read more

Admin Bar items active only on plugin page

Figured it out function add_toolbar_items($admin_bar){ if(‘profile’ == get_post_type()) $admin_bar->add_menu( array( ‘id’ => ‘main-title’, ‘title’ => ‘Targeting’, )); } add_action(‘admin_bar_menu’, ‘add_toolbar_items’, 100);