Okay
  Public Ticket #1419639
How do I translate the frontend of my theme in Bulgarian?
Closed

Comments

  • ilianandreev started the conversation

    Hi guys,


    I have a couple of questions:

    1) How do I translate the frontend of the theme to another language (Bulgarian in particular)?

    2) Not related to theme but would be grateful if you help, how to add such top bar to my theme: https://prnt.sc/hvpy65

    You have a great theme! 

    Best Regards,
    Ilian

  • [deleted] replied

    Hi Ilian,

    Thanks for your kind words

    1— To translate or rename theme strings, you can do this via Loco Translate plugin. If you don't have it, please install and activate the plugin in your WordPress site.

    1. Then go to Loco Translate > Manage Translations
    2. Click "New Language" for the current active theme (if you didn't created it yet, otherwise ignore this step). On the new language page, choose these options – Screenshot
    3. After that you will be redirected to the editing screen for theme translations. Before you continue with your translations make sure the current language of your site is selected – Screenshot
    4. Follow these instructions to learn how to translate strings – Screenshot
    5. The changes will be applied immediately – Screenshot

    Note: Translation files will be saved to wp-content/themes/{theme-name}/languages folder or global directory of theme translations: wp-content/languages/themes/ (based on your choice). 

    If you have saved your translations inside theme folder, always save a backup of languages/ folder (inside the theme) when there is new theme update. After you update the theme (languages folder will be replaced with an empty folder), just move the backup files you previously saved to the same languages directory and your changes will still be applied.

    2— We have used WP Notification Bars plugin for that area.

    Have a great day!

  • ilianandreev replied

    Ok so I want to translate some core strings but I can't see them in Loco Translate, please check screenshot:

    https://prnt.sc/hw0yy7

    How can I do that?

  • [deleted] replied

    Hi ilianandreev,

    That is the title of the widget, you just need to go to your Wordpress dashboard > Appearance > Widgets > and from there you can rename them.

    Have a great day!

  • ilianandreev replied

    Hello,

    Can you please tell me, how can I add custom CSS and also custom JS that won't get overriden when I update my theme?

    Many Thanks,

    Ilian

  • [deleted] replied

    Hi Ilian,

    — If you want to apply any CSS code on your site then you can go to Custom CSS area, for more info please read this article Adding custom CSS.

    — Also for the JS codes please read this article Adding Analytics Tracking Code or Custom JavaScript.

    Will set this ticket as solved from here.

    Thanks!

  • ilianandreev replied

    Hello,

    One last question, how can I modify certain templates from the theme so that it doesn't again get overriden by update? Maybe create a child theme, how can I do it?

    Thanks,
    Ilian

  • [deleted] replied

    Hi Ilian,

    Regarding your further questions, kindly open a new ticket and post your request so it will be helpful for the other users to take advantage of searching them on the forum. We’re glad to help you in your new thread.

    Will set this ticket as solved from here.