I’m looking for a way to remove the eye icon that shows visibility on login screen (wp-admin and wp-login) and reset password screen (/wp-login.php?action=rp).
As you can see on the screenshot below :
Login Page :
Reset password Page :
Update : I need to remove this button not only the visibility :
Thanks in advance for your reply.
regards.
2 Answers
This is one way
add_action('login_head', 'my_remove_eye');
function my_remove_eye() {
echo
'<style>
span.dashicons-visibility:before {
content: "";
}
</style>';
}