Child theme
-
Hello,
Can you please provide Child theme to make thing easy?
I created one but not working.
1) What should I input Template name in Style.css file? In your parent theme I can see Domain path: /language/. How can I use it in child / style.css ?
2) In functions.php file, what is wrong with my codes below?
<?php
function my_theme_enqueue_styles() {
$parent_style = ‘catalog-me-style’; // This is ‘parent-style’ for the Catalog-Me theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array( $parent_style ),
wp_get_theme()->get(‘Version’)
);
}
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
—————————————————–Please help. Thanks in advance!
The topic ‘Child theme’ is closed to new replies.