Easy Guide to Remove the Login Shake Effect in WordPress

Share on:

If you ever enter a wrong username or password when logging into WordPress, then you probably noticed that the login box shakes along with showing you the error that username or password is incorrect. In this tutorial, we will learn how to remove the login shake effect in WordPress.

remove wordpress login shake effect

The login 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 an aesthetic decision and should be made completely based on your personal preference. In our opinion, it helps get user’s attention and let them know that there is an error. On our sites, we do not remove the login shake effect.

We hope this tutorial helped you remove the login shake effect in WordPress.

You Might Also Like: Fix WordPress Login Page Redirecting Issue

comments powered by Disqus