Language Files in Child Theme

  • In Progress
    Posted in: Highend WP Theme  
  • Customer
    mmulder
    July 20, 2017 at 12:24 pm #113809

    Helllo,

    i made my own language files (nl_NL.po and nl_NL.mo) for the highend theme, only I use an highend child theme.

    Now I want to put the langauge files in the child theme so they won’t be gone everytime the main theme get’s an update.

    I found an solution online, only I can’t get this to work, I hope you can help me with this?


    /**
    * Loads the child theme textdomain.
    */

    function highendwp_child_theme_locale() {
    load_child_theme_textdomain( 'HighendWP', get_stylesheet_directory() . '/languages' );
    }
    add_action( 'after_setup_theme', 'highendwp_child_theme_locale' );

    Mark Mulder

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.