Proper Way To Load Wordpress Parent Stylesheet

Posted By Weston Ganger

You shouldnt be using the @import directive in your stylesheet

It slows things down and can cause some issues for media queries etc.

Instead you should add it to your functions.php file of your child theme:

function yourFunctionName(){
wp_enqueue_style('themeNameParentStyle', get_template_directory_uri*() . '/style.css', array(), 'all');

Article Topic:Software Development - Wordpress

Date:April 30, 2014