Ok, I’ll keep this straight and simple. If you want to remove the WordPress logo that you see in the left corner of the admin bar of your website (this is visible only if you are logged in), the code below is what you need.

The code below works from WordPress 3.3 up to the current version of WordPress. Paste the code into your theme or child theme’s functions.php file. If this does not work in your end, please post in the comment below.

remove-wp-logo

The code

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