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.


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

//Remove admin bar logo (
add_action('wp_before_admin_bar_render', 'ccw_remove_admin_bar_logo', 0);
function ccw_remove_admin_bar_logo() {
        global $wp_admin_bar;



Leave a Comment.