Customizing WordPress lofin php (3 posts)

  1. mariacharmer
    Posted 5 years ago #

    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....?

  2. jessn
    Posted 5 years ago #

    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

  3. mariacharmer
    Posted 5 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.