[Resolved] white label wordpress title bar

Home Forums Support [Resolved] white label wordpress title bar

Home Forums Support white label wordpress title bar

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #253036
    Steig

    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

    #253057
    Tom
    Lead Developer
    Lead Developer

    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;
    }
    #253109
    Steig

    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?

    #253146
    Steig

    Ok, I’ve got it fixed. Thanks!

    #253228
    Tom
    Lead Developer
    Lead Developer
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.