Skip to content

Instantly share code, notes, and snippets.

@stevenkellow
Last active March 10, 2017 18:13
Show Gist options
  • Save stevenkellow/6d6f5114cd7de937b33786b49b0e911f to your computer and use it in GitHub Desktop.
Save stevenkellow/6d6f5114cd7de937b33786b49b0e911f to your computer and use it in GitHub Desktop.
Ninja Forms password hotfix
var pass = document.getElementById("nf-field-3");
pass.type = 'password';
<?php
add_action( 'wp_enqueue_scripts', 'ninja_forms_password_fix', 99 );
function ninja_forms_password_fix(){
wp_enqueue_script( 'nf-password-fix', get_stylesheet_directory_uri() . '/js/ninja-forms-password-fix.js', array( 'jquery' ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment