How to remove WordPress logo on the admin bar without plugins

Updated: October 21, 2022 By: A Goodman Post a comment

In order to remove the WordPress logo from the admin bar, just place the code snippet below into your functions.php:

add_action('admin_bar_menu', 'my_remove_items', 999);
function my_remove_items($wp_admin_bar)
{
    $wp_admin_bar->remove_node('wp-logo');
    $wp_admin_bar->remove_menu( 'wp-logo' );
}

Simple as that. Further reading:

I have made every effort to ensure that every piece of code in this article works properly, but I may have made some mistakes or omissions. If so, please send me an email: [email protected] or leave a comment to report errors.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

Related Articles