Nov 6, 2012

Avoiding bobbing WordPress login screen

Filled under:

Avoiding bobbing WordPress login screen

Surely you noticed that when you mess with the user or password to access the screen WordPress "agita" wiggles from side to side so that you clearly realize that you were wrong.

This effect is caused by a small Javascript code , that if you do not like it you can disable.


Doing so is simple, as well, because you just have to add a small feature to your plugin function or file functions.php of your current theme, this:

//Quitar el meneo de los fallos de acceso
function quitar_meneo_login() {
remove_action('login_head', 'wp_shake_js', 12);
}
add_action('login_head', 'quitar_meneo_login');

Save the changes and you're one frikadas less in WordPress.

0 comments:

Post a Comment