WordPress.org

Support

Support » How-To and Troubleshooting » Change name of site admin

Change name of site admin

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m also looking for a way to do this. I thought it might be in the: widgets.php file but I searched for “site admin” and couldn’t find it. Please advise if you have figured this out!

    Do you mean the one listed under Blogroll?

    Yeah i would like to know how to do this too…. anyone got any further?

    You mean, under Meta?

    I was able to test change it, by modifying the following:

    wp-includes/general-template.php, line 194

    Look for this paragraph

    /**
     * Display the Registration or Admin link.
     *
     * Display a link which allows the user to navigate to the registration page if
     * not logged in and registration is enabled or to the dashboard if logged in.
     *
     * @since 1.5.0
     * @uses apply_filters() Calls 'register' hook on register / admin link content.
     *
     * @param string $before Text to output before the link (defaults to <li>).
     * @param string $after Text to output after the link (defaults to </li>).
     */
    function wp_register( $before = '<li>', $after = '</li>' ) {
    
    	if ( ! is_user_logged_in() ) {
    		if ( get_option('users_can_register') )
    			$link = $before . '<a href="' . site_url('wp-login.php?action=register', 'login') . '">' . __('Register') . '</a>' . $after;
    		else
    			$link = '';
    	} else {
    		$link = $before . '<a href="' . admin_url() . '">' . __('Site Admin') . '</a>' . $after;
    	}
    
    	echo apply_filters('register', $link);
    }

    change this line

    $link = $before . '<a href="' . admin_url() . '">' . __('Dashboard') . '</a>' . $after;

    I don’t know how many other instances it will change, but it surely does change the link in the sidebar.

    Thanks very much for the help buddha trance its sorted my problem.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change name of site admin’ is closed to new replies.
Skip to toolbar