Answer the question
In order to leave comments, you need to log in
WordPress - How to screw language localization into a Cactus child theme?
Greetings friends. I am creating my own child theme for the parent theme Cactus:
https://velathemes.com/cactus-theme/
I can't beat the reason why I can't attach localization to my child theme. Ukrainian is active on the site for development. language in the html markup of the page, the lang tag looks like this: <html lang="uk" class=" no-svg js no-touch">
Let's say my child theme is called "Child Cactus", and is located in the "child_cactus" folder. Therefore, if you place the code in function.php:
function my_child_theme_locale() {
load_child_theme_textdomain( 'Child Cactus', get_stylesheet_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'my_child_theme_locale' );
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question