Monday 21 July 2014

How to Remove WordPress Logo and menu From Admin Bar

Using the code below will remove the WordPress logo and wordpress Related sub menu from the Admin top Bar. The only thing you need to do is paste this code into the wp-content/thems/yourthems/function.php file of your theme.


add_action('admin_bar_menu', 'remove_wp_logo', 999);
function remove_wp_logo( $wp_admin_bar ) {
$wp_admin_bar->remove_node('wp-logo');
}

No comments:

Post a Comment