Skip to content

Instantly share code, notes, and snippets.

@awakekat
Last active January 11, 2019 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awakekat/aac2728dd7f7d5addbaa7fa3ab02e432 to your computer and use it in GitHub Desktop.
Save awakekat/aac2728dd7f7d5addbaa7fa3ab02e432 to your computer and use it in GitHub Desktop.
/**
* Enqueue Parent and Child Styles
*/
function enqueue_styles() {
// enqueue parent styles
wp_enqueue_style('parent-theme', get_template_directory_uri() .'/style.css');
// enqueue child styles
wp_enqueue_style('child-theme', get_stylesheet_directory_uri() .'/style.css', array('parent-theme'));
}
add_action('wp_enqueue_scripts', 'enqueue_styles');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment