• Resolved wesol

    (@wesol)


    There is no option to edit ALL text in addon.

    In signup form i want to let user type his name, but ONLY name, now its name+surname. I know it not demanded, but when user see name and surname, just dont know that it isnt needed. So where can I edit it? I cant find file with translations.

    regards
    w

    https://wordpress.org/plugins/alo-easymail/

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

    (@eventualo)

    The labels of fields in subscription form are: Name and Email.
    So your subscribers are free to write the fullname or only the firstname, or maybe a nickname.
    You can customise the field label using a piece of code like this (into functions.php of your theme):

    function my_easymail_name_label( $translated_text, $untranslated_text, $domain ) {
    
    	if( $untranslated_text == 'Name' && $domain == 'alo-easymail' )  {
    		$translated_text = 'Firstname';
    	}
    
    	return $translated_text;
    
    }
    add_filter('gettext', 'my_easymail_name_label', 10, 3 );
    Thread Starter wesol

    (@wesol)

    Thank you for ur reply, and piece of code – work like charm

    Its about translation, in Polish translation there is:
    Imię i nazwisko (name and surname) and email, not only name 😉

    Thanks again, and have a nice day!

    Plugin Author eventualo

    (@eventualo)

    Now I understand, I don’t know the Polish translation…
    If you like you can update the translation, the files are here: https://github.com/groucho75/alo-easymail/tree/master/languages
    Have a nice day you too!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Where I can edit NAME text’ is closed to new replies.