Remove the “WordPress logo” from the WordPress Toolbar

A quick tip on how to remove the first menu in the admin bar, or the all-new nickname widely used in the WP community “WordPress Toolbar”.

Foremost among the improvements: it’s not called the Admin Bar anymore! It is now the WordPress Toolbar.

So how do I manage to remove it?

 

Just copy the following code to your functions.php file and you’re all set. The changes will take effect right after you do a refresh.

add_action( 'wp_before_admin_bar_render', function() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu('wp-logo');
}, 7 );

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

404 Errors after clicking Wordpress links

This is a common issue when a blogs rewrite rules have been altered. You will notice this when...

Admin login for WordPress and other programs

I know the admin password, and simply want to change it. Simply login to your admin panel (for...

How to Install a WordPress Theme

WordPress does allow you to download and use custom themes for your blog. If you would like to...

WordPress is giving error: "Missing a temporary folder" while uploading image/media ?

WordPress is giving error on image upload : "image.jpg” has failed to upload due to an error...

Optimizing Wordpress on Shared Hosting

Wordpress blogs can be extremely resource intensive if you happen to experience a surge in...