Last active
August 1, 2018 05:28
-
-
Save rushijagani/4a91a3a5f538503ae77dfab85c2520c9 to your computer and use it in GitHub Desktop.
Enqueue external styles in child themes
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 | |
// enqueue styles for child theme | |
function example_enqueue_styles() { | |
// enqueue parent styles | |
// Add style.css inside the /assets/css/ directory. | |
wp_enqueue_style('parent-theme', get_template_directory_uri() .'/assets/css/style.css'); | |
} | |
add_action('wp_enqueue_scripts', 'example_enqueue_styles'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment