WordPress change login image

This is more fun than real use, I want Gandalf from Lord of the Rings to protect my word press login.Its really simple, just upload the images to your web space and then open the “/wp-login.php” and change the this:

<div id="login"> 
<h1><a href="<?php echo esc_url( $login_header_url ); ?>" title="<?php echo esc_attr( $login_header_title ); ?>" tabindex="-1"><?php bloginfo( 'name' ); ?></a></h1>

to this:

<div id="login"> 
		<img id="login_img" src="/img/ysnp.jpg" width="100%" height="100%"> 


and now I want another error image, for this find this part:

echo '<div id="login_error">' . apply_filters( 'login_errors', $errors ) . "</div>\n";

then add my line:

echo '<script>document.getElementById("login_img").src="/img/bwl.jpg";</script>';


for a bigger view I changed the “/wp-admin/css/login.min.css”:

#login {
    margin: auto;
    padding: 8% 0 0;
    width: 640px;


and now its looks pretty like this:

gandalf1And the error screen:


I hope you like it!

For a live preview look at http://scheinast.eu/wp-login.php.

5 thoughts on “WordPress change login image”

  1. I’ll rght away snatch your rss as I can’t in finding your e-mail
    subscription link or newsletter service. Do youu have
    any? Please permit me understand in order that Imay subscribe.

  2. Great blog! Do you have any tips and hints for aspiring writers?
    I’m planning to start my own website soon but I’m a
    little lost on everything. Would you advise starting
    with a free platform like WordPress or go for a paid option? There are so many
    options out there that I’m completely overwhelmed ..

    Any ideas? Cheers!

  3. you are in reality a good webmaster. The site loading speed is amazing.
    It kind of feels that you are doing any unique trick.

    Moreover, The contents are masterwork. you have performed
    a great activity in this subject!

  4. Good day! I simply wish to offer you a huge thumbs
    up for your great information you have here on this post.
    I’ll be coming back to your blog for more soon.

Leave a Reply

Your email address will not be published.

20 − seven =