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.

Also Read  How to put ADs within a Post in Wordpress

CMSFolks Editorial Crew

Editorial Staff at CMSFolks is a team of WordPress experts led by Ajayi Adekunle. Site maintained by CMSFolks Studio.

Leave a Reply

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

Close Menu


Spelling error report

The following text will be sent to our editors: