This topic has 17 replies, 5 voices, and was last updated 8 years, 7 months ago ago by Jack Richardson
Hallo,
I would like to learn how:
1) to translate the wordings on single product page (clear selection – choose an option) -.po -.mo files didnot work. (on which php file?)
2) to translate error message on log-in page after the wrong password ERROR: THE PASSWORD YOU ENTERED FOR THE USERNAME bla bla IS INCORRECT. (on which php file?)
3) to add some wordings on the top of the page? (same line with wishlist, sign in, register; but on the right side)
thank you for your kind help in advance,
Hello,
1./2. Did you translate Woocommerce plugin?
Please refer to documentation:
https://docs.woothemes.com/document/woocommerce-localization/ (6. Translating with PoEdit)
3. You need edit the file wp-content/themes/legenda/header.php (starting from line 173) and add your code.
Best regards,
Jack Richardson.
Thank you Jack,
1/2 I localized the theme. I think these are bugs.
3. I need to add just a contact number. So what the code should be? If it is not hard, your help will be appreciated.
Thanks
Hello
You may add your text in wp-content/themes/legenda/framework/theme-functios.php from line 1070.
Another way is to add your text or html place in header top bar widget are in appearance->widgets.
Reagrds,
Brian johnson
Dear Brian,
I try to add a text widget but it didnot work. Whatever, I will find a solution later. Now I need to know the answers of question 1 and 2, please.
Thank you in advance.
Please provide us with wp-admin and FTP credentials to your site.
Regards,
Brian Johnson
Please see below. Thx.
Hello,
As I see you didn’t translate the strings in wp-content/themes/legenda/languages directory in your lt_LT.po file:
http://storage5.static.itmages.com/i/15/1009/h_1444390671_7992069_6778e366e9.png
Regards,
Eva Kemp.
Dear Eva,
This method is not working unfortunately. I tried it yesterday. And now you can see that these words are translated. But on frontend, these words are still in English. The best solution is changing the code file. So could you please say me which file should I change?
-clear selection
-choose an option
-ERROR: THE PASSWORD YOU ENTERED FOR THE USERNAME bla bla IS INCORRECT.
Thank you for your help.
Hello,
As I see they are still not translated:
http://storage6.static.itmages.com/i/15/1009/h_1444405530_9825817_c9c4f57622.png
Are you checking the file in wp-content/themes/legenda/languages directory?
Regards,
Eva Kemp.
Dear Eva,
Sorry for the inconvinience, You are right. I corrected the lang file. Now I need your help on two issues.
1 – How to translate this sentence? ERROR: THE PASSWORD YOU ENTERED FOR THE USERNAME bla bla IS INCORRECT.
2 – I would like to add a contact number on the top header bar. http://prntscr.com/8ptcnq
I try to add a text widget, but it didnot work.
3 – I would like to change the BG colour of this area. http://prntscr.com/8ptcnq
I try to do it through theme options > header section. But the red BG option is not the one which I want. (The search button dissappears.) ON the other hand, the black BG is the option which I want, but I dont know how to chang the black color to my main color scheme.
Thank you for ur support.
Hello,
1. This message is standard WordPress error message and you can translate in the wp-includes/user.php file in line 155.
2. The reason was that option “Enable languages area” in Theme Options > Header was disabled, so I’ve enabled it and added text widget in Appearance > Widgets > Place in header top bar.
3. I’ve added the css code in your custom.css:
.top-bar {
background-color: black !important;
}
Best regards,
Jack Richardson.
Thank you Jack, very helpful. Last question. How to change the text color of the top header bar? I tried the code below, but didnot work 🙁
.top-bar {
text-color: black !important;
}
Thanks a lot.
Hello,
Please use this css code:
.top-bar a, .login-link:before, .register-link:before, .top-bar .languages-area, .top-bar .wishlist-link a span:hover {
color: black !important;
}
Best regards,
Jack Richardson.
Hello mildac,
as we can see – you already have changed color of header top bar with following code:
.top-bar {
background-color: #cf005a !important;
}
Regards,
Stan Russell.
Thanks Jack. Great.
You may close the ticket. Solved.
Hello,
You’re welcome.
Best regards,
Jack Richardson.
The issue related to '‘MInor Problems’' has been successfully resolved, and the topic is now closed for further responses