Skip to content

Instantly share code, notes, and snippets.

@rustyeddy
Created March 5, 2013 15:41
Show Gist options
  • Save rustyeddy/5091184 to your computer and use it in GitHub Desktop.
Save rustyeddy/5091184 to your computer and use it in GitHub Desktop.
Darn, I can't remember where I stole this from. Either @bgardner or from my.studiopress.com, I think. Anyway, It's really straight forward but I use it all the time. I like to avoid mixing my style changes / additions to the theme as provided.
// Load custom style sheet
add_action( 'wp_enqueue_scripts', 'custom_load_custom_style_sheet' );
function custom_load_custom_style_sheet() {
wp_enqueue_style( 'custom-stylesheet', CHILD_URL . '/custom.css', array(), PARENT_THEME_VERSION );
}
@rustyeddy
Copy link
Author

I'll re-attribute it when I remember where I got it from :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment