Tag Info

New answers tagged


Although Otto's answer is pretty good, I ended up with this in my child theme's functions.php function my_theme_styles() { global $wp_styles; $parentOriginalHandle = 'twentythirteen-style'; $parentNewHandle = 'parent-style'; // Deregister our style.css which was enqueued by the parent theme; we want // to control the versioning ourself. ...


You don't have to use @import. It's best not to, actually. Using an enqueued approach is probably better all around. Here's the relevant part of twentythirteen's code: function twentythirteen_scripts_styles() { ... // Loads our main stylesheet. wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), '2013-07-18' ); ... } ...

Top 50 recent answers are included