WordPress.org

Forums

Unwanted link to network on login (1 post)

  1. Rod Whiteley
    Member
    Posted 1 year 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();
    	}

Topic Closed

This topic has been closed to new replies.

About this Topic

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

Tags