Skip to content

Instantly share code, notes, and snippets.

@celticwebdesign
Created December 11, 2015 17:12
Show Gist options
  • Save celticwebdesign/3080f1eb91a0842a439d to your computer and use it in GitHub Desktop.
Save celticwebdesign/3080f1eb91a0842a439d to your computer and use it in GitHub Desktop.
WordPress - change the login new password text (http://www.xxx.net/wp/wp-login.php?action=rp)
Add to functions.php
add_action( 'login_enqueue_scripts', 'enqueue_my_script' );
function enqueue_my_script( $page ) {
wp_enqueue_script( 'my-script', 'http://www.xxx.net/wp/wp-content/themes/xxx/js/myjs-file.js', null, null, true );
}
Add to new .js file in theme
(function ($, root, undefined) {
var width;
$(function () {
'use strict';
$('p.message.reset-pass').text('Please enter your new password in the box below or copy the pre-set password to re-use.');
});
})(jQuery, this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment