The recommended way of enqueuing the parent theme stylesheet currently is to add a wp_enqueue_scripts
action and use wp_enqueue_style()
in your child theme’s functions.php
.
Load your style.css
file with a proper handler as you said you have more than one style.css
file you will have to make sure to maintain all of the Parent Theme dependencies.
if ( ! function_exists( 'prefix_theme_enqueue_scripts' ) ) {
function prefix_theme_enqueue_scripts() {
wp_enqueue_style( 'parent_handler', get_template_directory_uri() . '/app/assets/css/screen.css' );
wp_enqueue_style( 'child_handler',
get_stylesheet_directory_uri() . '/style.css',
array('parent_handler')
);
add_action( 'wp_enqueue_scripts','prefix_theme_enqueue_scripts' );
}
}
where parent_handler
is the same $handle used in the parent theme when it registers it’s stylesheet. Check your parent theme for handler