Skip to content

WPcademy

Linux & Wordpress Tutorials

  • Home
  • WordPress
    • WordPress Login
    • WordPress Hosting
    • WordPress Plugins
    • WordPress SEO
    • WordPress Themes
    • WordPress Tutorials
  • Linux Tutorials
    • Centos
    • Ubuntu
  • Tutorials
    • How to
    • Programming
  • Security
  • About Us
  • Contact Us

Tag: wordpress login shake effects

Posted on October 17, 2019October 17, 2019

Easy Guide to Remove the Login Shake Effect in WordPress

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

100 dollar free credit on digitalocean cloud server

Latest Tutorials

  • How to install and configure shadowsocks in ubuntu machine
  • Initial Server Setup with Ubuntu
  • How to connect to a remote MySQL database using Linux terminal
  • How To Install OpenEMR on Ubuntu 20.04 with a LAMP Stack (Apache, MySQL, PHP)
  • How to Install WordPress with LEMP on Ubuntu 20.04
  • How To Use Traefik v2 as a Reverse Proxy for Docker Containers on Ubuntu 20.04
  • How To Set Up Physical Streaming Replication with PostgreSQL 12 on Ubuntu 20.04
  • How To Install PostgreSQL on Ubuntu 20.04 [Quickstart]
  • How To Serve Flask Applications with Gunicorn and Nginx on Ubuntu 20.04
  • How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 20.04
  • Facebook
  • YouTube
Privacy Policy Proudly powered by WordPress