Created
April 18, 2016 12:48
-
-
Save mrfoxtalbot/5dbefd3bff58e48f81fa66eae27e359c to your computer and use it in GitHub Desktop.
Get WordPress localization file from child 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
// Load translation files from your child theme instead of the parent theme | |
function my_child_theme_locale() { | |
load_child_theme_textdomain( 'total', 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