Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #541565

    Hello
    I would like to change the words “you are here” in the breadcrumb.
    I changed the .mo et .po files with poedit, and if i upload them in /enfold/lang/ it’s working.

    But I want to upload the 2 files into my Child Theme, to keep the modifications after updates.
    And it’s not working.
    In functions.php, I added :

    function my_child_theme_locale() {
        load_child_theme_textdomain( 'Enfold Child', get_stylesheet_directory() . '/languages' );
    }
    add_action( 'after_setup_theme', 'my_child_theme_locale' );

    And in my /enfold-child/languages/ folder I uploaded the .mo et .po files.
    Could you give me some advice please ?
    Thanx

    • This topic was modified 9 years ago by romano2.
    #542150

    Hi romano2!

    Here: load_child_theme_textdomain( ‘Enfold Child’,

    you have to load the text domain name of the child theme ( child theme folder name ) and not the name of the child theme. can you please give it a try?

    Thanks a lot

    Cheers!
    Basilis

    #542471

    Hello and thanx !
    My folder’s name is ‘enfold-child’.
    But this does not work either…
    My functions.php code is :

    <?php
    /*Add your own functions here. */
    function my_child_theme_locale() {
        load_child_theme_textdomain( 'enfold-child', get_stylesheet_directory() . '/languages' );
    }
    add_action( 'after_setup_theme', 'my_child_theme_locale' );

    Any alternative ?

    #544771

    Hi!

    Can you please give us a print screen of the ftp of your child theme and what is inside the language file?
    need to check further to allocate the issue

    Best regards,
    Basilis

    #544846

    Of course !
    Here are the print screens.

    Thanks !

    #544851

    Hey!

    Try with the following method:
    http://kriesi.at/documentation/enfold/child-theme-translations/

    Best regards,
    Josue

    #544881

    Great !!!
    It’s working. Many thanx, great support !
    RESOLVED

    #544885

    You are welcome, glad to help :)

    Regards,
    Josue

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