How to Remove Login Shake in WordPress

Have you ever entered a wrong username or password when logging into WordPress, then you should notice that the login box shakes along with showing you the error that username or password is incorrect. This shake feature is added with a JavaScript file that WordPress adds on every login page. All we need to do is remove that JavaScript.

Simply add the following code in your theme’s functions.php file or in a site-specific plugin:

function wpb_remove_loginshake()
{
remove_action('login_head', 'wp_shake_js', 12);
}
add_action('login_head', 'wpb_remove_loginshake');

Removing the login shake effect is a personal decision and should be made completely based on your personal preference. In our best opinion, it a notification for your site user, to let them know that something is wrong with either or both of their credentials (Username or Password)

If you have found a spelling error, please, notify us by selecting that text and pressing Ctrl+Enter.

Related Post

Also Read  How to Install Themes on WordPress (Both Free and Premium)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close Menu
×

Cart

Spelling error report

The following text will be sent to our editors: