
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:
- WordPress: Passing Params to get_template_part()
- Using Docker Compose to speed up WordPress development
- How to insert 4K images in your WordPress posts
- WordPress: Show related posts by tags
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.