Stop WordPress from shaking after unsuccessful login

If you’re customizing WordPress to you needs or you want to achieve a completely unique experience for your clients, you will want to customize parts of the system you may have not even thought of. A simple color here, a link there and those little changes will lead to a unique WordPress experience.

In order to complete your customization, you may want to remove that shake your WordPress does every time you enter incorrect login information. It’s really not a big deal and we like the effect but we will still show you how to easily remove it.

Remove the shaking feature:

  1. Open functions.php file
  2. Copy and paste the following code:
  3. function login_error() {
    remove_action('login_head', 'wp_shake_js', 12);
    add_action('login_head', 'login_error');
  4. Save changes

That’s all there is. You can now logout and try out some incorrect logins. Voila! Your WordPress login page isn’t shaking anymore.

If you want to customize your login page furthermore, you may want to allow your user to log in by using their emails, let only admins to access the login page or stop showing unnecessary information after unsuccessful login.

In addition, you can control “Remember Me” checkbox with a plugin or do the same by using a code into your functions.php file.

Start Blog Book


This guide is an introduction to mastering the art of blogging. It provides easy to follow steps to start, maintain, and grow your blog.

Read the guide

Leave a Reply

Your email address will not be published. Required fields are marked *