Untitled-27 Back to Project

Getting Started Untitled-27

Customisation Untitled-27

Troubleshooting Untitled-27

Security Untitled-27

Users & roles Untitled-27

Working with Client Portal Untitled-27

Integrations Untitled-27

Change Error Message on the Login Screen

You can modify the login error (as the screenshot shows) with the following custom snippets:

Change the message text

The following PHP snippet should go to your theme's functions.php file:

add_filter( 'leco_cp_login_error_message', 'my_leco_cp_login_error_message' );
function my_leco_cp_login_error_message() {
   return 'Hello there - You are not supposed to be here I guess?';
}

Change the color of the text

The following CSS snippet should go to your "Custom CSS" section in the CP Settings:

p.login-error {
  color: blue; 
}