Ready to get started?Download WordPress


Removing site name from admin bar (2 posts)

  1. smush
    Posted 3 years ago #


    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.


  2. thedax
    Posted 3 years ago #

    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) );
    	//$blog_name = get_bloginfo('name', 'display');
    if ( '' == $blog_name ) {
    	$blog_name = __( '' );

Topic Closed

This topic has been closed to new replies.

About this Topic