Skip to content

How To Remove WordPress Logo From Admin Bar

There is an admin bar in the top of every WordPress with some quick links. The admin bar contains links to information About WordPress, links to create new posts, pages and links, review comments, and alerts to available updates to plugins and themes on your site.

At the left side of the admin bar is a menu with WordPress logo with the links to About WordPress, WordPress.org, Documentation, Support Forums, and Feedback.

If you’re working on a client project, then you should hide this menu to make your site look more professional for the client.

Most newbies edit WordPress core CSS to hide the admin bar, but their edit goes away with the next WordPress release. Here’s how to do it in the right way.

Add this code to your functions.php file to remove the WordPress logo on admin bar:

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);

 

Leave a Reply

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