Remove WordPress logo from admin bar

In this tutorial I will show you how to remove WordPress logo from admin bar. To do this we are using global $wp_admin_bar.

remove-wordpress-logo-admin-bar

To remove logo from admin bar simply copy the following code and paste it inside your functions.php file.

//Remove admin bar logo (http://coffeecupweb.com/)
add_action('wp_before_admin_bar_render', 'ccw_remove_admin_bar_logo', 0);
function ccw_remove_admin_bar_logo() {
        global $wp_admin_bar;
        $wp_admin_bar->remove_menu('wp-logo');
}

 

0 Comments

Leave a Comment.