Skip to content
Wordpress, WooCommerce, Php, Html, CSS
  • Home
  • Tutorials
  • WordPress Courses
  • Plugins
  • Showcase
  • News
  • Contact
WordPress Login Shake Effect

How to Remove the Login Shake Effect in WordPress

January 2, 2021 by admin

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. Recently one of our users asked if there was a way to remove the login shake effect in WordPress? Well yes there is. In this article, we will show you how to remove the login shake effect in WordPress.

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 article helped you remove the login shake effect in WordPress. If you found this article helpful, then please consider subscribing to our YouTube channel and following us on Twitter.

Source: Eric Martin

Categories Tutorials Tags login ui, WordPress Login, wordpress login shake effect
Post navigation
How to Prevent Youtube oEmbed from Overriding your WordPress Content
Should You Give Admin Access to Plugin Developers for Fixing Bugs?

Product Highlight

This first widget will style itself automatically to highlight your favorite product.

Learn more

Recent Posts

  • Microblog in WordPress with these 15+ Tumblr Style WordPress Themes
  • How to Display WordPress Post Thumbnails with Captions
  • WordPress 3.1.2 – Yet another Security Update
  • What is a WordCamp and Why You Should Attend? [Infographic]
  • Lucky Winners of Mojo Themes Anniversary Bundle ($442 Value)
  • Flatsome vs WoodMart vs Xstore vs Elementor Comparison
  • Elementor Addons and Themes
  • Elementor Pro Nulled
  • 10 Best WordPress Themes of 2021
  • Yoast Seo Nulled
  • Best Elementor WordPress/WooCommerce Themes
  • Trending Plugins/Addons and Themes for WordPress
  • Top 10 WordPress E-Commerce Themes
  • Woocommerce Plugins and Themes
  • Privacy Policy
  • Terms
  • Contact
© 2021 Wordpress, WooCommerce, Php, Html, CSS • Built with GeneratePress