I'm trying to customize the 'Forgot password'-page.

I identified the following code in functions.php which I believe is creating this current (somewhat) customized 'Forgot password'-page:

function new_login_logo() { ?>
    <style type="text/css">
        #login h1 a, .login h1 a {
            background-image: url('<?php echo get_template_directory_uri(); ?>/assets/images/logo.png');
            background-size: 320px 40px;
            background-repeat: no-repeat;
<?php }
add_action( 'login_enqueue_scripts', 'new_login_logo' );

I've had someone work on it and add the logo.

However, I would like to finish the rest myself and

  • translate the default English words
  • as well as change the default blue color to another.

Can anyone tell me how I would achieve this or provide hints?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.