Skip to content

Instantly share code, notes, and snippets.

@juyal-ahmed
Last active August 29, 2015 14:18
Show Gist options
  • Save juyal-ahmed/fccf1adf41dd48f1aef4 to your computer and use it in GitHub Desktop.
Save juyal-ahmed/fccf1adf41dd48f1aef4 to your computer and use it in GitHub Desktop.
WordPress child theme stylesheets enqueue
add_action( 'wp_enqueue_scripts', 'mondira_child_theme_css' );
function mondira_child_theme_css() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style', get_stylesheet_uri(), array( 'parent-style' ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment