Tagged: x
-
AuthorPosts
-
December 7, 2016 at 1:21 am #1284167
maghrabi42ParticipantHello,
if you can tell me please how to translate the message which appears on invalid username and password
you can find it in attachmentDecember 7, 2016 at 2:08 am #1284213
FriechModeratorHi There,
Thanks for writing in! Please follow this post: https://community.theme.co/kb/translation/
Let us know how it goes.
December 7, 2016 at 3:56 am #1284307
maghrabi42Participanthello,
i did not find it on x.pot of theme and woo commerce
thak youDecember 7, 2016 at 4:19 am #1284330
ChristopherModeratorHi there,
Please provide us with URL of page where you added login form.
Thanks.
December 7, 2016 at 4:31 am #1284338
maghrabi42ParticipantThis reply has been marked as private.December 7, 2016 at 8:50 am #1284643
LelyModeratorHello There,
Thank you for the credentials.
The message you were seeing is the default wordpress message. It is not part of the theme. In case you want to translate the message please try adding the following code on your child theme’s functions.php file:add_filter( 'wp_login_errors', 'override_incorrect_password_msg', 10, 2 ); function override_incorrect_password_msg( $errors, $redirect_to ) { if( isset( $errors->errors['incorrect_password'] ) ) { $errors->errors['incorrect_password'][0] = 'Your new translated message'; } return $errors; } add_filter( 'wp_login_errors', 'override_incorrect_username_message', 10, 2 ); function override_incorrect_username_message( $errors, $redirect_to ) { if( isset( $errors->errors['invalid_username'] ) ) { $errors->errors['invalid_username'][0] = 'Your new translated message'; } return $errors; }Then replace
Your new translated messagewith your translated message.Hope this helps.
December 7, 2016 at 9:58 pm #1285564
maghrabi42Participantthanks for your help about the translate is not on your scope but the code is not make any change if you can help me for that please
thank you so muchDecember 7, 2016 at 11:51 pm #1285666
maghrabi42Participantyou can see the attachment please
sorry about ask a lot of questions 🙂December 8, 2016 at 12:14 am #1285699
LelyModeratorHello There,
I can see that you do have caching plugin. Please try clearing cache and then check again. Do let us know how this goes.
December 8, 2016 at 2:12 am #1285769
maghrabi42ParticipantHello,
i get error about the plugin i disaple the w3 total cache
thank youDecember 8, 2016 at 2:13 am #1285771
maghrabi42ParticipantThis reply has been marked as private.December 8, 2016 at 2:45 am #1285790
Rue NelModeratorHello There,
Thanks for updating in! Regretfully the given ftp access is not working for us. Please double check it and send the correct ones.
Thank you in advance.
December 8, 2016 at 4:26 am #1285873
maghrabi42ParticipantThis reply has been marked as private.December 8, 2016 at 1:21 pm #1286449
RadModeratorHi there,
It’s still incorrect, please check again.
You should also check your child theme’s functions.php, a function name should only exist once x_translate_text(). It’s either rename the other one, or merge the same function.
Thanks!
December 8, 2016 at 10:28 pm #1287025
maghrabi42ParticipantThis reply has been marked as private. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1284167 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
