• I’d like to tweak the css for th4r admin/login.php to reflect the website I am designing so that client doesn’t see WP logo but their company logo instead. Which file do I use to customize the style…layout and function is fine just want to change logos and color scheme and font….?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Add this to functions.php:

    function my_custom_login_logo() {
    echo '<style type="text/css">
    h1 a { background-image:url('.get_bloginfo('template_directory').'
    /images/custom-login-logo.gif) !important; }</style>'; }
    add_action('login_head', 'my_custom_login_logo');

    replacing the URL with the URL to the image that you want to use instead of the WordPress one

    Thread Starter mariacharmer

    (@mariacharmer)

    Huh…I replaced this code snippet (I assume you meant this part):
    /images/custom-login-logo.gif) !important; }</style>’; }
    with this:

    /images/MBR_banner.png) !important; }</style>’; }

    It didn’t replace the default WP logo on the login page…Did I do it incorrectly?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customizing WordPress lofin php’ is closed to new replies.