badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Read more link in widget

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #19114
    info39
    Participant

    How do I change the text read more to my language in the widget Theme Horse Services?

    #19164

    Hi info39,
    You need to create a .po and .mo file for language translation.
    Thank you!

    #19447
    info39
    Participant

    Hi!
    I have put the swedish .po and .mo files in child/languages. But it doesnt work.
    Then I added new .php file with only this text:

    <?php

    load_theme_textdomain( ‘frontier’, get_stylesheet_directory() . ‘/languages’ );

    ?>

    But that doesnt work either. Any suggestions?

    Thanks

    #19477

    Hi info39,
    Go to the dashboard -> setting -> general and at the last of the page, there is site language and select your language and click on save changes.
    View this screenshot
    http://awesomescreenshot.com/00d41ows74

    Hope this may help you
    Thank you!

    #19482
    catherinehedberg
    Participant

    Hi!
    I have already set my language there to swedish.

    Any other suggestions?

    #19489

    Hi catherinehedberg,
    Just create a functions.php file inside child theme directory and copy the language folder from the parent theme and add your translation file ( .po and .mo file ),

    Just add this file inside functions.php

    load_theme_textdomain( 'interface', get_stylesheet_directory() . '/languages' );

    Then it works.

    Thank you!

    #19548
    info39
    Participant

    Hi!
    Still no luck.
    Now I have upgraded to pro, any changes in the code?

    I copied the language folder (with a .pot file) to the child folder. Then I put the .po and .mo file inside that file.

    My only text in my fuctioons.php file in the child thme folder is:

    <?php

    load_theme_textdomain( ‘interface’, get_stylesheet_directory() . ‘/languages’ );

    ?>

    If nothing works, can I change some code in the Theme Horse Services- widget file? Were is that located.

    Thanks

    #19620

    Hi info39,
    If you change the code then while updating to our new version all your customisation code will be lost. So we recommended not to change the code.
    Just create two file
    1> style.css and
    2>functions.php

    Under functions.php adding this code its correct
    <?php load_theme_textdomain( 'interface', get_stylesheet_directory() . '/languages' ); ?>

    and under style.css add the below code.

    
    /*
     Theme Name:   Interface Child
     Theme URI:    https://www.themehorse.com
     Description:  Interface Child customization
     Author:       Theme Horse
     Author URI:   
     Template:     interface
     Version:      1.0.0
     Tags:         
     Text Domain:  interface
    */
    
    @import url("../interface/style.css");
    

    Thank you!

    #19638
    info39
    Participant

    Hi!
    I know I have to have a child, I have that and still no luck.
    I will just try it without this widget.

    Thanks anyway.

    #19664

    Ok Sure but i just tried here in my local server and its working fine.

    Thank you!

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.