How do you make Child Theme CSS stylesheet load last (after the other stylesheets)?
I made a Classipress child theme, however my styles don't work because they get loaded *before* the parent's styles. In order for them to override the parent styles, they must be loaded *after* the parent stylesheet is loaded.
Please, anyone, help me fix the code so that my child's stylesheet gets loaded after the parent's. I've done literally dozens of variations of the sample at the codex and other website tutorials and no matter what I do, the child's stylesheet continues to load first.
http://codex.wordpress.org/Function_..._enqueue_style
PHP Code:
function load_the_styles() {
wp_enqueue_style( 'classipress', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'classipress-child', get_stylesheet_directory_uri() . '/style.css', array( 'classipress' ) );
}
add_action( 'wp_enqueue_scripts', 'load_the_styles' );
Was this post helpful? Click the "Thanks" button below.