• Resolved compassiondan

    (@compassiondan)


    Is it possible to add customized text to the login page? Believe it or not, we have people who simply don’t understand the message “ERROR: The username or password you entered is incorrect. Lost your password?”. We want some customized text that reads “Still having problems logging in? Please e-mail us.” And there would be a link from “e-mail us” to a mailto form.
    Thank you…love your plugin!

Viewing 1 replies (of 1 total)
  • Plugin Support weblizar_support

    (@weblizar_support)

    Hello compassiondan,
    Yes it is possible, follow the below steps-
    1) Open the file “admin-custom-login.php” from plugin folder.
    2) Add the following section of code as shown here

    add_filter('login_errors','login_error_message');
    function login_error_message($error){
        //check if that's the error you are looking for
        $pos = strpos($error, 'incorrect');
        if (is_int($pos)) {
            //its the right error so you can overwrite it
            $error = "Still having problems logging in? Please <a href='https://localhost/wordpress_472/wp-login.php?action=lostpassword'>e-mail us</a>";
        }
        return $error;
    }
    

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Messages’ is closed to new replies.