Created
June 17, 2015 16:15
-
-
Save larsmqller/0172157a2737dd8755f7 to your computer and use it in GitHub Desktop.
Load translation files from your child theme instead of the parent theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my_child_theme_locale() { | |
load_child_theme_textdomain( 'my_child_theme', get_stylesheet_directory() . '/languages' ); | |
} | |
add_action( 'after_setup_theme', 'my_child_theme_locale' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment