evanshi21
Forum Replies Created
-
hi, any update about this?
Forum: Plugins
In reply to: [Loco Translate] Child Theme translation not showingThe function was not added on my childtheme.
when i create translation i set the languages files be saved on child theme folder.
i tried these 2 functions:
add_action( ‘after_setup_theme’, ‘my_theme_setup’ );
function my_theme_setup(){
load_theme_textdomain( ‘my-theme’, get_stylesheet_directory_uri() );
}On this one was not working so i decide to create “languages” folder inside child theme and copy languages file there and use this function
add_action( ‘after_setup_theme’, ‘my_theme_setup’ );
function my_theme_setup(){
load_theme_textdomain( ‘motors-child’, get_template_directory() . ‘/languages’ );
}but still not loading translation configured on loco
Forum: Plugins
In reply to: [Loco Translate] Child Theme translation not showingyou mean add a code like this in function.php?
add_action( ‘after_setup_theme’, ‘my_theme_setup’ );
function my_theme_setup(){
load_theme_textdomain( ‘my-theme’, get_template_directory() . ‘/languages’ );
}Forum: Plugins
In reply to: [Loco Translate] Child Theme translation not showingi decide to replace all text domain on code to ‘motors-child’
Example:
<div class=”title heading-font”><?php esc_html_e(‘Select Your Part Compatibility’, ‘motors-child’); ?></div>
i create again the child theme translation to spanish however still not showing translation on frontend for spanish in strings that belong to child theme