• Resolved [email protected]

    (@manuelpalachukcom)


    I need to set custom wording for Reset Password and the Register messages shown at the top above the title.

    I assumed I would copy the class-theme-my-login-template.php to my theme directory as I did when customizing registration fields, and then modify the text in it.

    I’ve verified chown apache and chmod 644 as with the theme-my-login-custom.php and register-form.php but the text does not get over ridden. I did a sanity check and changed the text in the original class-theme-my-login-template.php in plugins/theme-my-login/includes/ and it does replace the text.

    And last, I even tried copying the customized class-theme-my-login-template.php into the plugins director.

    What am I missing?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    That doesn’t work with the plugin’s classes, only templates. Which messages are shown above the title?

    Thread Starter [email protected]

    (@manuelpalachukcom)

    I’m trying to change the messages:
    Please enter your username or email address. You will receive a link to create a new password via email.

    I do not use usernames, only email addresses, so I need the message to indicate Please enter your email address…

    Also, the title of the page says Register so the message “Register For This Site” seems redundant and thus I would change it.

    All I know is where I found the messages, in the class-theme-my-login-template.php file.

    How should I change them?

    Thanks again.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Those are shown below the title, no? By any means:

    function tml_action_template_message_filter( $message, $action ) {
        if ( 'register' == $action ) {
            $message = '';
        } elseif ( 'lostpassword' == $action ) {
            $message = 'YOUR NEW MESSAGE HERE';
        }
        return $message;
    }
    add_filter( 'tml_action_template_message', 'tml_action_template_message_filter', 10, 2 );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘class-theme-my-login-template.php not activating’ is closed to new replies.