Skip to content

Instantly share code, notes, and snippets.

@rhyswynne
Created October 3, 2014 08:01
Show Gist options
  • Select an option

  • Save rhyswynne/acaaee81a1727e0a1ed0 to your computer and use it in GitHub Desktop.

Select an option

Save rhyswynne/acaaee81a1727e0a1ed0 to your computer and use it in GitHub Desktop.
Proper way of including the Parent Styles.css
<?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