Created
October 3, 2014 08:01
-
-
Save rhyswynne/acaaee81a1727e0a1ed0 to your computer and use it in GitHub Desktop.
Proper way of including the Parent Styles.css
This file contains hidden or 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: Include Parent Theme styles.css, the proper way. | |
| */ | |
| function child_theme_enqueue_stylesheets() { | |
| wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); | |
| } | |
| add_action( 'wp_enqueue_scripts', 'child_theme_enqueue_stylesheets' ); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment