WordPress.org

Ready to get started?Download WordPress

Forums

Login Logo
[resolved] Login Logo Domain Mapping Issues on Multi Site? (9 posts)

  1. rpetersnmt
    Member
    Posted 3 years ago #

    Has anyone gotten this to work with Domain Mapping and WordPress Multi User? I'm not sure what my deal is here...maybe I need to adjust some setting in my Domain Mapping configuration...but I can't get the Login Logo to change per domain login? I've followed the simple directions re: renaming the login logo filename per site ID (login-logo-network-[SITE ID #].png) but it doesn't seem to work for me...I even fiddled around with the plugin code a bit to return the site ID and it always returns "1" regardless of what site domain admin I'm trying to access. Any ideas/thoughts? thx in advance.

    http://wordpress.org/extend/plugins/login-logo/

  2. It;s not built to have a different logo per site.

  3. rpetersnmt
    Member
    Posted 3 years ago #

    Hmmm....I guess Im confused...so what is the option here in step 4 used for?

    http://wordpress.org/extend/plugins/login-logo/installation/

    I assumed "Network" meant "Site"...I tried to find the definition here but came up empty handed? Any chance you can clear this up for me? Thx in advance...

  4. Network means all your sites together. This will be a LOT clearer in 3.1.

    There's no assumption of domain mapping with this plugin. there *is* an assumption that you're using it with a subdomains or subfolders (the default) and want the same login screen for each site.

  5. rpetersnmt
    Member
    Posted 3 years ago #

    Looking forward to 3.1 for sure. Okay...gotcha...I understand. I still need a a way to display a different logo (per site) here but I suspect a person could find a way to do this per multisite "site" based on site ID....assuming one could snag that value. I'll fiddle. Thanks for the clarification.

  6. You could fork the plugin to look for the logo in that blog's uploads folder. then you'd get per site. ;)

  7. rpetersnmt
    Member
    Posted 3 years ago #

    Yeah...I only have a few "sites" on this "network" at the moment so I stuck with the same general model (of putting various logos in the /wp-content/ folder) & added a little bit in the init function to grab them based on site ID:

    global $blog_id;
    
    if ( $blog_id != "" ) {
    $this->logo_locations['site'] = array(
    'path' => WP_CONTENT_DIR . '/login-logo-site-' . $blog_id . '.png',
    'url' => WP_CONTENT_URL . '/login-logo-site-' . $blog_id . '.png'
    );
    }

    [Please post code snippets between backticks or use the code button.]

    Seens to work okay and solve it for me. Thx for your help. :)

  8. John Gardner
    Member
    Posted 3 years ago #

    @rpetersnmt - any chance you could tell me what line you put that code into? I placed at the bottom of if( is_multisite() (the only logical place I thought it could go) but it's not working.

    Thanks!

  9. macnetis
    Member
    Posted 3 years ago #

    Hi, I've created another topic which has a similar issue but doesn't involve domain mapping, so that it isn't so misleading.

    Basically I want to:

    1. Use the png in the individual blog's folder,
    2. Or revert to the default png in the wp-content folder
    3. Or revert to the default WordPress logo
    4. Whatever it is, just don't crash or give the White Screen of Death

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic