In order to use language files in a theme folder, I understand to insert something in functions.php
I tried the following but doesn't seem to work - any help welcome:
<?php
add_action( 'after_setup_theme', 'my_child_theme_setup' );
function my_child_theme_setup(){
load_child_theme_textdomain('evento', get_stylesheet_directory() . '/languages');
}
?>
Comments
1 comment
I grabbed this code and tried to use it in my functions.php, but it's not working. I'm on the Harpoon theme, and maybe the code itself works, but we need to change the name of the variables to match our particular theme names?
Please sign in to leave a comment.