Last active
August 29, 2015 14:07
-
-
Save Zodiac1978/e117446fa38dedac0f0d to your computer and use it in GitHub Desktop.
Load Parent Theme CSS in Child Theme without using @import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function twentytwelve_child_scripts() { | |
wp_deregister_style( 'twentytwelve-style' ); | |
wp_register_style( 'twentytwelve-style', get_template_directory_uri() . '/style.css' ); | |
wp_enqueue_style( 'twentytwelve-child-style', get_stylesheet_uri(), array( 'twentytwelve-style' ) ); | |
} | |
add_action( 'wp_enqueue_scripts', 'twentytwelve_child_scripts', 11 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment