an
groups-icon

Child Theme Language File

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    Danny W
    66 points
    Bronze User
    Bronze User

    I’m using a child theme under DT9 and I can’t get it to use the language files in /childtheme/languages/

    This is in my child theme functions.php

    
    	function __construct(){ 	
    		// INCLUDE LANGUAGE
    		load_child_theme_textdomain( "childtheme_ChildishTheme", get_stylesheet_directory() . "/languages" );	
    

    If I load the en_US.mo and en_US.po file into the parent theme language directory it works fine.

    I am not creating a whole translation, just changing a few phrases here and there.

    Any ideas for me?

    March 30, 2020 at 9:36 pm
  • Adnan
    28 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    March 31, 2020 at 8:56 am
  • Danny W
    66 points
    Bronze User
    Bronze User
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    March 31, 2020 at 2:45 pm
  • Adnan
    28 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    March 31, 2020 at 5:30 pm
  • Danny W
    66 points
    Bronze User
    Bronze User
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    March 31, 2020 at 7:40 pm

645

Views

4

Replies