WordPress.org

Ready to get started?Download WordPress

Forums

Unwanted link to network on login (1 post)

  1. Rod Whiteley
    Member
    Posted 10 months ago #

    I use multisite to run a bunch of separate sites. The idea is that no one can tell they are related in any way. I've just noticed that WordPress gives the game away on the login page. The header image there names the network, and it links to the main site.

    As a quick fix, in my child theme's functions.php I wrote:

    add_action('login_head', 'sc_login_head');
    function sc_login_head () {
    	global $current_site;
    	$current_site->site_name = get_bloginfo('name', 'display');
    	add_filter('network_home_url', 'sc_network_url', 10, 3);
    	}
    function sc_network_url ($url, $path, $scheme) {
    	return site_url();
    	}

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 10 months ago by Rod Whiteley
  • This topic is not a support question
  • WordPress version: 3.6

Tags