Child stylesheet appears above parent
-
I have used Create Block Theme to create a child theme, I have installed it and everything seems fine
I want some custom styling in my child theme so I create functions.php and add thisfunction fse_child_styles()
{
wp_enqueue_style('fse-child-style', get_stylesheet_directory_uri() . '/assets/dist/child-style.css');
}
add_action('wp_enqueue_scripts', 'fse_child_styles');Hover the stylesheet is enqueue above the parent one so the only way I can make the custom css to override the parent is by using
!important
Is there a way to get the child stylesheet below the parent?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Child stylesheet appears above parent’ is closed to new replies.