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.