• Hi

    I have been trying to remove certain items from the admin bar which appear at the top of all WordPress pages. I’ve managed to remove the ‘visit’ menu from it by reading a forum elsewhere but I have had no luck with researching how to remove the site name that appears first on the left of the admin bar. Does anyone here know how I can do it? as it’s driving me crazy.

    Thanks

Viewing 1 replies (of 1 total)
  • Go to wp-admin folder.
    Look for admin-header.php
    Replace from line 110:

    if ( is_network_admin() )
    	$blog_name = sprintf( __('%s Network Admin'), esc_html($current_site->site_name) );
    elseif ( is_user_admin() )
    	$blog_name = sprintf( __('%s Global Dashboard'), esc_html($current_site->site_name) );
    else
    	//$blog_name = get_bloginfo('name', 'display');
    if ( '' == $blog_name ) {
    	$blog_name = __( '' );
Viewing 1 replies (of 1 total)
  • The topic ‘Removing site name from admin bar’ is closed to new replies.