• Hi Marco,

    I’ve just found this plugin and think it’s fantastic. Well done.

    I was wondering if it’s possible to customise the status messages e.g. Login Successful, redirecting…, Please supply your username and password. etc.

    I’ve customised the default widget by adding the files to my child theme folder. The status messages seem to reside in a translation file or in login-with-ajax.php in the plugin folder.

    Thanks,

    Joel

    https://www.ads-software.com/plugins/login-with-ajax/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    you can try this custom snippet –

    function change_where_metabox( $translated_text, $text, $domain ) {
            switch ( $translated_text ) {
                case 'Where' :
                    $translated_text = __( 'Sponsoring Location', 'text-domain' );
                    break;
            }
        return $translated_text;
    }
    add_filter( 'gettext', 'change_where_metabox', 20, 3 );

    – change ‘text-domain’ with ‘login-with-ajax’
    – change ‘Where’ with the text that you’ve wanted to translate in Login With Ajax (use the whole text) eg. Login Successful, redirecting...

    case 'Login Successful, redirecting...' :
                    $translated_text = __( 'Your translation or custom text', 'login-with-ajax' );
                    break;

    you can add the custom snippet at the end of your theme functions.php or using mu-plugins

    Thread Starter Joel Eade

    (@joeleade)

    Fantastic! Thanks mate ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customise Status Messages’ is closed to new replies.