This is what you need to include in the functions file of your child theme to include the parents style without having to do a @import in the css file.
1 2 3 4 5 |
function enqueue_custom_child_theme_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_uri(), array('parent-style') ); } add_action( 'wp_enqueue_scripts', 'enqueue_custom_child_theme_styles' ); |