Useful: How to Remove Password Visibility Button and Dashicons
-
Good Day!
See below for an extremely useful code snippet.
Enjoy!
———————————————–
Remove Password Visibility Button and Dashicons (Eyes) from Login Form:
(Note: This code snippet can be easily applied with the plugin, Code Snippets)
function remove_wp_hide_pw_button() { ?><script> if ((document.addEventListener != null) && (document.querySelector != null)) { document.addEventListener( 'DOMContentLoaded', function() { var b = document.querySelector('button.wp-hide-pw'); if (b != null) b.remove(); }); } </script> <?php } add_action('login_footer', 'remove_wp_hide_pw_button');
———————————————
Reference: Remove Visibility (Eye) Dashicons from WP Login Form
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Useful: How to Remove Password Visibility Button and Dashicons’ is closed to new replies.