How to use style.css in Elementor Child Theme

Add the following code to the top of your functions.php file and anything underneath the top comments of your style.css file in your hello-elementor-child folder will be used on top of the default hello-elementor style.css file.


//* Enqueue style.css from child theme
function hello_elementor_child_enqueue_scripts() {
wp_enqueue_style(
'hello-elementor-child-style',
get_stylesheet_directory_uri() . '/style.css',
[
'hello-elementor-theme-style',
],
'1.0.0'
);
}
add_action( 'wp_enqueue_scripts', 'hello_elementor_child_enqueue_scripts', 20 );

This website uses cookies to ensure you get the best experience on our website.