How to remove wordpress logo from admin bar ?


To remove wordpress logo from the admin bar, paste the following code inside your theme or any active plugin...


function remove_admin_bar_logo() {
    global $wp_admin_bar;
add_action( 'wp_before_admin_bar_render', 'remove_admin_bar_logo' );


Global variable $wp_admin_bar holds the default definition of admin bar. By the above code snippet we force wordpress to execute our function remove_admin_bar_logo on wp_before_admin_bar_render action. Where our function does removal of wordpress logo from $wp_admin_bar global variable.


You may like...

How to change "Howdy" message in admin bar ?

To change / remove howdy message from the admin bar, paste the followi...