Why are my child styles loading before my parent styles?
-
I am trying to figure out how to properly enqueue a child theme stylesheet and I cannot figure it out. I have this in my child theme functions.php:
<?php //Get UIC Child Theme Styles function uic_styles() { wp_enqueue_style( 'uic-styles', get_stylesheet_directory_uri() . '/library/css/style.css' ); } add_action( 'wp_enqueue_scripts', 'uic_styles' ); ?>
But when I look at the page source for my site, the child theme styles are loading first and the parent styles are loading second. This means that the parent styles are overriding the child styles. How do I fix this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Why are my child styles loading before my parent styles?’ is closed to new replies.