WordPress – Come rimuovere l’effetto Shake

Wordpress - Remove the Login Shake Effect

WordPress – Remove the Login Shake Effect !

Per impostazione predefinita, la schermata di accesso di WordPress scuote un paio di volte quando si inseriscono credenziali errate.

Ovviamente, non tutti gli utenti preferiscono questa opzione e vorrebbero disattivarla. La soluzione è davvero  semplice: infatti, basta aggiungere semplicemente il seguente codice nel file functions.php del vostro tema:

function wpb_remove_loginshake() {
remove_action(‘login_head’, ‘wp_shake_js’, 12);
}
add_action(‘login_head’, ‘wpb_remove_loginshake’);

Fatto ! D’ora in poi la casella di login non si muoverà più.

Note: ricordatevi, di eseguire prima il backup del file functions.php, per poterlo ripristinare in caso di problemi.

Via wpbeginner.com

Our website uses cookies and thereby collects information about your visit to improve our website (by analyzing), show you Social Media content and relevant advertisements. Please see our cookies page for furher details or agree by clicking the 'Accept' button.

Cookie settings

Below you can choose which kind of cookies you allow on this website. Click on the "Save cookie settings" button to apply your choice.

FunctionalOur website uses functional cookies. These cookies are necessary to let our website work.

AnalyticalOur website uses analytical cookies to make it possible to analyze our website and optimize for the purpose of a.o. the usability.

Social mediaOur website places social media cookies to show you 3rd party content like YouTube and FaceBook. These cookies may track your personal data.

AdvertisingOur website places advertising cookies to show you 3rd party advertisements based on your interests. These cookies may track your personal data.

OtherOur website places 3rd party cookies from other 3rd party services which aren't Analytical, Social media or Advertising.