Proper Way To Load Wordpress Parent Stylesheet

Posted by Weston Ganger on April 30, 2014

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');

Posted in Wordpress and Tagged with wordpress 

Want me to help develop your next project or application?

Contact Us

Specializing in Ruby-on-Rails, Javascript, Multi-Platform Electron Desktop Apps and Hybrid Cordova Mobile Apps.

Recommended Posts