New Landing How can we help? Themeforest Theme Support Dante Translations in child theme

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #36043
    abeldb
    Member
    Post count: 77

    Hi!

    I try to define child theme folder to my languages files, but doesn’t works.

    The code is:

    function my_child_theme_setup() {
    load_child_theme_textdomain( 'dante-child', get_stylesheet_directory() . '/languages' );
    }
    add_action( 'after_setup_theme', 'my_child_theme_setup' );

    as explained here: http://codex.wordpress.org/Child_Themes#Internationalization


    My files works fine inside languages folder main theme,
    but it’s overwritten when new autoupdate function runs
    and I prefer put inside child theme, it’s better.

    Can you tell me which function/code it’s necessary to load child theme langs?

    #36289
    Tahir – SUPPORT
    Member
    Post count: 1212

    Hi,
    you can use the child theme like this for Internationalization http://codex.wordpress.org/Child_Themes#Internationalization

    our text domain is swiftframework

    Try this and let me know, just a suggest I am not familiar with child themes that much.

    Thanks
    Tahir

    #36733
    abeldb
    Member
    Post count: 77

    OOoouuups…

    My TEXT DOMAIN was mixed,
    that’s it!

    Thank you very much!

    #36812
    Melanie – SUPPORT
    Member
    Post count: 11032

    Great!

Viewing 4 posts - 1 through 4 (of 4 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