If you ever enter a fallacious username or password when logging into WordPress, you then in all probability observed that the login field shakes together with displaying you the error that username or password is wrong. Recently certainly one of our customers requested if there was a means to remove the login shake impact in WordPress? Well sure there’s. In this text, we’ll present you ways to remove the login shake impact in WordPress.
Simply add the following code in your theme’s features.php file or in a site-specific plugin:
perform wpb_remove_loginshake() remove_action('login_head', 'wp_shake_js', 12); add_action('login_head', 'wpb_remove_loginshake');
Removing the login shake impact is an aesthetic determination and ought to be made utterly based mostly in your private choice. In our opinion, it helps get consumer’s consideration and allow them to know that there’s an error. On our websites, we don’t remove the login shake impact.