MInor Problems - by mildac - on WordPress WooCommerce support

This topic has 17 replies, 5 voices, and was last updated 8 years, 7 months ago ago by Jack Richardson

  • Avatar: mildac
    mildac
    Participant
    October 8, 2015 at 21:17

    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,

    16 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 9, 2015 at 06:52

    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.

    Avatar: mildac
    mildac
    Participant
    October 9, 2015 at 07:22

    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

    Avatar: Brian Johnson
    Brian Johnson
    Member
    October 9, 2015 at 07:30

    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

    Avatar: mildac
    mildac
    Participant
    October 9, 2015 at 08:30

    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.

    Avatar: Brian Johnson
    Brian Johnson
    Member
    October 9, 2015 at 08:38

    Please provide us with wp-admin and FTP credentials to your site.

    Regards,
    Brian Johnson

    Avatar: mildac
    mildac
    Participant
    October 9, 2015 at 12:27

    Please see below. Thx.

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    October 9, 2015 at 12:45

    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.

    Avatar: mildac
    mildac
    Participant
    October 9, 2015 at 16:38

    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.

    Avatar: Eva
    Eva Kemp
    Support staff
    October 9, 2015 at 16:45

    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.

    Avatar: mildac
    mildac
    Participant
    October 10, 2015 at 15:10

    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.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 12, 2015 at 18:13

    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.

    Avatar: mildac
    mildac
    Participant
    October 12, 2015 at 22:56

    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.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 13, 2015 at 07:37

    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.

    Avatar: stan
    Stan Russell
    Participant
    October 13, 2015 at 07:55

    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.

    Avatar: mildac
    mildac
    Participant
    October 13, 2015 at 08:28

    Thanks Jack. Great.
    You may close the ticket. Solved.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 13, 2015 at 10:40

    Hello,

    You’re welcome.

    Best regards,
    Jack Richardson.

  • Viewing 17 results - 1 through 17 (of 17 total)

The issue related to '‘MInor Problems’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.