WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Change login error messages

I'm creating a custom log in page on a wordpress install and would like to remove the "Lost your password?" link from the "ERROR: Invalid username. Lost your password?" message that comes up if the user inserts the wrong password.

I've been looking in the wp-login.php but must be missing something, can someone point me to the right file?

share|improve this question

marked as duplicate by Stephen Harris, mor7ifer, toscho Mar 1 '12 at 1:27

This question was marked as an exact duplicate of an existing question.

up vote 0 down vote accepted

I've found the generated text in the wp-includes\user.php file so removed it there and done what I was looking for.

share|improve this answer
It's not advisable to change core files (this will be lost with an update, and potentially mean plug-ins do not function properly). See the related question on how to do this without modifying the core files. – Stephen Harris Feb 29 '12 at 11:28

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