Created
December 11, 2015 17:12
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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