Skip to content
  • Apps
  • Anime
  • Gaming
  • Alternatives
  • Proxy
  • Guides
    • How to
    • Resources
    • Tips
  • Apps
  • Anime
  • Gaming
  • Alternatives
  • Proxy
  • Guides
    • How to
    • Resources
    • Tips

How to Remove the WordPress Login Shake Effect (Step-by-Step)

  • April 24, 2026
  • by Ricky Spears
  • 7 min read

Hey there, WordPress user! Have you ever entered the wrong login credentials on your site and noticed the form shaking back and forth? While this animated "shake" is meant to alert you of an incorrect username or password, some folks find it annoying or distracting.

Navi.
What Is the WordPress Login Shake Effect?
How Many Sites Have the Login Shake Enabled?
How to Remove the Login Shake Using a Plugin (No Code Required!)
Disable Login Shake by Editing functions.php (Advanced)
WordPress Login Security Tips & Best Practices
Frequently Asked Questions
Wrapping Up
Related

In this tutorial, we‘ll walk you through exactly how to disable the WordPress login shake effect step-by-step. By the end, you‘ll be able to easily turn off this animation whether you prefer using plugins or custom code. Let‘s dive in!

What Is the WordPress Login Shake Effect?

First, let‘s clarify what we mean by the WordPress login "shake" effect. By default, the WP login form will briefly shake horizontally if you enter the wrong username/password combination. An error message will also pop up explaining the login attempt failed.

Here‘s a quick gif of the shake animation in action:

WordPress login form shake effect

This UX feature is designed to visually alert users as soon as possible that their login credentials are incorrect. It‘s the same principle as form fields turning red when you enter invalid information.

How Many Sites Have the Login Shake Enabled?

WordPress is used by over 43% of all websites, including around 64 million sites just on the WordPress.com platform (Source). That means tens of millions of sites likely have the default login shake effect active.

However, some percentage of those sites may have disabled the shake animation for various reasons:

  • They find it annoying or think it looks unprofessional
  • It doesn‘t match their site‘s branding or design aesthetic
  • They want to minimize unnecessary animations for accessibility
  • The rapid shaking movement feels jarring to certain users

At the end of the day, disabling the login shake effect is a matter of personal preference. It won‘t impact your site‘s security or performance – it‘s purely a visual tweak.

How to Remove the Login Shake Using a Plugin (No Code Required!)

The easiest way to get rid of the WordPress login shake for non-technical users is by installing a plugin. We like WPCode, a free plugin that lets you manage custom code snippets right from your dashboard.

Here‘s how to use WPCode to disable the login form shake:

  1. Install and activate the WPCode plugin on your WordPress site
  2. In your WP dashboard, go to Code Snippets » Add Snippet
  3. Search for "Remove Login Shake" in the snippet library
  4. Hover over the "Remove Login Shake Animation" snippet and click Use Snippet
  5. Toggle the snippet to Active and click Save

Activating login shake snippet in WPCode

That‘s it! The login shake effect should now be disabled on your site. To test it out, intentionally enter the wrong username/password on your login page. The form should remain still, with only the error text appearing.

If you ever want to re-enable the shake animation, simply head back to WPCode and set the "Remove Login Shake Animation" snippet to Inactive.

Disable Login Shake by Editing functions.php (Advanced)

If you‘re comfortable adding code to your WordPress files, you can remove the login shake by dropping a snippet into your theme‘s functions.php file:

  1. Go to Appearance » Theme Editor in your WP dashboard
  2. Select Theme Functions (functions.php) under Theme Files
  3. Paste this code at the bottom of the file:
function disable_login_shake() { 
   remove_action(‘login_head‘, ‘wp_shake_js‘, 12);
}
add_action(‘login_head‘, ‘disable_login_shake‘);
  1. Click Update File to save your changes

Adding login shake code to functions.php file

This snippet removes the JavaScript action that creates the login shake effect. One advantage of editing the functions.php file directly is that you don‘t need an extra plugin.

However, be aware that changes made to your theme files can get overwritten when you update your theme. That‘s why we generally recommend using a plugin like WPCode to manage custom code instead.

WordPress Login Security Tips & Best Practices

While the login shake effect is a visual feature that doesn‘t directly impact security, it‘s still crucial to follow login best practices to protect your site from unauthorized access.

According to WordFence, WordPress sites can face up to 100,000 hacking attempts per day! To harden your login security:

  • Use strong passwords with 12+ characters and a mix of upper/lower case, numbers & symbols
  • Enable two-factor authentication for an extra verification layer
  • Install a WordPress security plugin to monitor for suspicious login activity
  • Limit failed login attempts to block brute force attacks
  • Keep your WordPress core, themes & plugins updated

Here are a few more guides to help you customize and secure your WordPress login page:

  • How to Create a Custom Login Page Design
  • Best WordPress Login Form Plugins
  • Add Google reCAPTCHA to WordPress Login
  • Why You Should Limit Login Attempts

Frequently Asked Questions

Before we wrap up, let‘s go over a few common questions about the WordPress login shake effect:

What does the login shake animation look like?
If you enter an incorrect username/password on the WordPress login form, the default behavior is a quick side-to-side "shake" animation. It‘s meant to draw attention to the login error message below the form.

Does disabling the shake effect impact security?
No, the login form shake is a purely visual animation. Removing it won‘t affect security, brute force protection, or any other login functions. You can safely disable the animation if you find it distracting or annoying.

Can I customize other parts of the login page?
Yes! Aside from the shake effect, you can completely customize your WordPress login page design with custom branding, color scheme, layout, and more. Check out our guide on creating a custom WordPress login page.

I disabled the login shake but it‘s still showing up?
First, clear your browser cache and cookies to make sure you‘re seeing the latest version of your site. If the shake effect persists, double check that your code snippet or plugin settings were saved and applied correctly.

Wrapping Up

To recap, the WordPress login form has a default "shake" animation that appears when you enter the wrong username or password. If you find this effect annoying or off-putting, you can easily disable it by:

  1. Using the free WPCode plugin to add a "Remove Login Shake" code snippet
  2. Manually pasting a similar snippet in your theme‘s functions.php file

WordPress login customization process

Whether you love it or hate it, the login shake animation is a UX pattern that won‘t impact your site‘s speed, security, or WordPress core functionality. If you do decide to remove the effect, make sure to still follow login hardening best practices like enforcing strong passwords and enabling 2FA.

Ultimately, little customizations like this can make the WordPress admin experience smoother for you and your users. Want to learn even more ways to personalize your site? Subscribe to our newsletter for more tutorials, tips, and guides!

Did you like this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

How to Customize and Style Your WordPress Forms (2 Easy Methods)
How to Make a Small Business Website - Step by Step (2024)
How to Track and Reduce Form Abandonment in WordPress (Easy)
How to Display Popular Posts by Views in WordPress (2 Ways)
How to Boost Engagement by Displaying Recent Comments in Your WordPress Sidebar (2024 Guide)
14-Step Technical WordPress SEO Framework (Proven Checklist)
How to Add Klarna Payments to WordPress (2 Easy Ways)
How to Redirect Users to a Random Post in WordPress

Related

Recent Posts

  • Beginners Guide on How to Add Twitter Cards in WordPress
  • The Complete Guide to Fixing Broken Twitter Card Images in WordPress (2023)
  • The Ultimate Guide to Adding Twitter Tweet Buttons in WordPress (2024)
  • The Ultimate Guide to Sending Twilio SMS Notifications from Your WooCommerce Store in 2024
  • How to Activate WordPress Plugins from the Database (Ultimate 2024 Guide)
  • How to Disable RSS Feeds in WordPress (2 Easy Methods)
  • How to Disable the WordPress Admin Email Verification Notice: A Comprehensive Guide for 2024
  • How to Remove Automatic Image Links in WordPress (2023 Expert Guide)
  • How to Reduce Time to First Byte (TTFB) in WordPress – Expert Tips
  • The Complete Guide to Translating WordPress Plugins (2023)
  • The Complete Guide to Translating Your WooCommerce Store (2023)
  • The Ultimate Guide to Trackbacks and Pingbacks in WordPress (2024)
  • How to Stop WordPress Trackback Spam Dead in Its Tracks (2023 Guide)
  • How to Suggest New Features for WordPress: The Ultimate 2024 Guide
  • 21 Best Instagram Video Downloader in 2025
  • Microsoft Edge vs Firefox in 2025: Which Browser is Better?
  • 15 Best Zombie Games for Nintendo Switch
  • Top 6 Games Like Luigi’s Mansion 3 for Scary Trip
  • Some of the Best Content to Succeed at Growing a YouTube Channel
  • Unreal Engine Game Development: How to Make An Outstanding Game
  • What Role Can Generative AI Play in Decision-Making?
  • Staying Informed and Productive in a World That Never Sleeps
  • Generate and Maintain a Loyal Clientele Through Innovative Marketing Tactics
  • The Most Popular Types of Encryption Explained

About Us | Contact Us | Privacy Policy

©RickySpears.com 2023. All rights reserved.