WordPress.org

Ready to get started?Download WordPress

Forums

Adding Images to my login screen? (2 posts)

  1. oseary
    Member
    Posted 8 years ago #

    I saw a couple days ago, that someone had added a little image to the "user" and "password" fields. How is this done?

    I'd like to add small little icons inside of the white box (where you enter your info), but I am an idiot when it comes to coding.

    Thank you for your help!

  2. Samuel B
    moderator
    Posted 8 years ago #

    Look in WP root for wp-login.php.
    Look inside for this or similar:
    <form name="loginform" id="loginform" action="wp-login.php" method="post">
    <p><label><?php _e('Username:') ?><br /><input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1); ?>" size="20" tabindex="1" /></label></p>
    <p><label><?php _e('Password:') ?><br /> <input type="password" name="pwd" id="pwd" value="" size="20" tabindex="2" /></label></p>
    <p>
    <label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="3" />
    <?php _e('Remember me'); ?></label></p>
    <p class="submit">
    <input type="submit" name="submit" id="submit" value="<?php _e('Login'); ?> &raquo;" tabindex="4" />
    <input type="hidden" name="redirect_to" value="<?php echo $redirect_to; ?>" />
    </p>
    </form>

    Put it in the appropriate place.
    Careful - there are 2 forms - one is for lost passwords.

Topic Closed

This topic has been closed to new replies.

About this Topic