Viewing 6 posts - 1 through 6 (of 6 total)
  • #68396
    mingda
    Member
    Post count: 18

    I used the child themes and there is a language directory and upload the .po .mo
    but the language can not work.
    Should I create a function.php in child theme? how can I edit it?

    #68618
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please refer this article block http://neighborhood.swiftideas.net/documentation/#theme-installation and follow step by step . Hope it will help you sure .

    Thanks 🙂
    With Best Regards
    Swift Ideas

    #68638
    mingda
    Member
    Post count: 18

    sorry for my poor English.
    I have been translated fine and upload .po and .mo file to /wp-content/themes/neighborhooda and it working ok, but if install the theme update and the language become into English, so I want to set my language into child-theme.
    so, can you tell me how to edit the function.php that must be upload in /wp-content/themes/neighborhood-child.

    #68648
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please put this code at functions.php at child theme

    <?php
    add_action( 'after_setup_theme', 'neighborhood_child_setup' );
    function neighborhood_child_setup() {
    /* Load the child theme’s gettext file */
    load_child_theme_textdomain( 'swiftframework', get_stylesheet_directory() . '/languages' );
    }
    ?>
    #68653
    mingda
    Member
    Post count: 18

    Hi Mohammad,

    Thank you very much, but at the last 3 line seems to be edit as “language”.
    However, thank you.

    #68655
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Sorry my mistake . Thanks to inform me.

    Thanks 🙂
    With Best Regards
    Swift Ideas

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register