6/17/2015 - 3:20 PM

Load Parent Theme CSS Before Child Theme CSS

Functions file

// Wordpress child themes: @import no longer the best practice; add enqueue to functions.php instead 

// You can drop this snippet directly into the non-Genesis child theme’s functions.php without needing to change anything:

<?php // load parent theme CSS
function load_parent_theme_css() {
    wp_enqueue_style( 'parent-theme', get_template_directory_uri() . '/style.css' );
add_action( 'wp_enqueue_scripts', 'load_parent_theme_css' );