How can I style the reset password page, where I put in my new password?

I tried going like this:

function my_login_stylesheet() {
        get_template_directory_uri() . '/dist/styles/main.css' 
add_action( 'login_enqueue_scripts', 'my_login_stylesheet' );

but it added the CSS only to the login and forgot password page (forgot password as in the page where you put in your email).

However, I want to style the reset password page (where you put in your passwords).

  • That's strange, it is the same page, calling same hooks essentially. Had you verified that your file isn't loading at all? It might be just that your CSS rules are off.
    – Rarst
    Nov 1, 2015 at 14:53
  • @Rarst yes i'm sure. try it out yourself. Nov 1, 2015 at 16:45
  • @AryehArmon - Did you ever find a solution for this? I'm having the same issue.
    – Yazmin
    Feb 6, 2016 at 20:45

1 Answer 1


Woocommerce overrides default account management templates with its own shortcode driven templating system. Use this hook instead:

add_action('woocommerce_lostpassword_form', 'do_whatever');
  • Hi thanks for your answer, i am not using woocommerce, not sure why you think i am. Nov 2, 2015 at 13:39
  • Then a theme or a plugin is overriding the default Wordpress account management. Look for it. If you want an simple diagnostic, then simply run your code on a fresh Wordpress install. Nov 2, 2015 at 14:05
  • it is a fresh wordpress install. Nov 3, 2015 at 5:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.