How To Remove WordPress Logo From Admin Bar Easily ?

Sometimes you want to remove the logo from WordPress admin bar especially when you are keeping admin bar visible for the logged out users or sometimes in your client websites etc. You can do this very easily by adding a code snippet in your theme functions file.

 

Open your theme’s function.php file and add the following code.

<?php
function annointed_admin_bar_remove() {
global $wp_admin_bar;

/* Remove their stuff */
$wp_admin_bar->remove_menu(‘wp-logo’);
}

add_action(‘wp_before_admin_bar_render’, ‘annointed_admin_bar_remove’, 0);
?>

That’s all. Your admin bar logo is no more visible. Thank’s to wp-snippets.com

Leave a Reply

Your email address will not be published. Required fields are marked *