Site logo

Archived topic

white label wordpress title bar

4 replies · Started by Steig on December 9, 2016

Viewing posts 1–5 of 5

Hi Tom,

I'm trying to figure out how to white label the site for end users who establish accounts. For me, that means company logo on the login page and then ability to put logo in the black title bar and remove various options that some plugins put there.

Can that be done via the generate press customizer? I've used White Label CMS plugin in the past, but run into plugin conflicts with it too often.

Thanks,
Steig

Hi there,

Possible with some functions.

Change the image on the login page:

add_action( 'login_enqueue_scripts', 'tu_login_logo' );
function tu_login_logo() { ?>
    <style type="text/css">
        body.login h1 a {
            background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/gp-logo.png);
        }
    </style>
<?php }

Change the URL the login logo points to:

add_filter('login_headerurl', 'tu_login_logo_link');
function tu_login_logo_link() {
	return home_url();
}

For the admin bar, you should just be able to add this CSS to your site:

#wp-admin-bar-wp-logo {
    display: none;
}

I've downloaded the plugin "code snippets" (I think I've seen you recommend it) and put the top two items in it, activated and running "everywhere". I changed gp-logo.png to just be logo.png, the name of my logo. However on the login page, no logo shows. To be sure, the wordpress logo is gone, but mine isn't showing.

For cleaning up the admin bar, I've put the CSS code in the simple CSS folder and don't see a change. Is that code supposed to remove all extra entries in the admin bar? Or just remove the wordpress logo?

Ok, I've got it fixed. Thanks!

You're welcome! :)

This archived topic is closed to new replies.