Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Please make sure you have a copy of that functions.php file before you edit it.
My functions.php file does not have a colon at the end. Should I add it?
If you mean it does not have a closing ?> then that you can leave off.
The line you added should end with a semicolon.
Should this text string be added on the same line or the next line?
At the top of your theme’s functions.php file should be a <?php add the new line right below that so that it looks like so
<?php
wp_set_password('your-new-password-that-you-choose-goes-here',1);
The rest of the existing file will be there.
Do I enter my new password in this text string? I don’t know what I’m supposed to put in my own new password.
See above hint. Yes, you replace password with whatever you like. 😉
If that works and you can get into your WordPress dashboard then restore the copy of the old functions.php file.
Thanks Jan,
I am going to try this right now.
I’ll let you know the result.
Don
Update. It almost works; it no longer gives me the shakes.
But, after I enter my user name and password, a redirect message appears and the url bar reads <http://donharris.me/wp-login.php?redirect_to=http%3A%2F%2Fdonharris.me%2Fwp-admin%2F&reauth=1>
I’m in! Thank you very much Jan, cubecolour, and funkywebsites!
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
That should be OK provided you can actually log in…
Try clearing your browser’s cookies and visit http://donharris.me/wp-admin/
That should redirect you to that login URL and then you should be able to get in after putting in your userid/password…