Skip to content

Instantly share code, notes, and snippets.

@DigitalEssence
Created September 7, 2013 20:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save DigitalEssence/6478938 to your computer and use it in GitHub Desktop.
Save DigitalEssence/6478938 to your computer and use it in GitHub Desktop.
If you work on genesis child themes a lot then this code (originally by Chris Cree) will save you loads of time. First create a custom.css file with your custom styles and FTP it up to your child theme directory. Then add the below code to your child theme's functions.php file.
add_action( 'wp_enqueue_scripts', 'wsm_custom_stylesheet' );
function wsm_custom_stylesheet() {
wp_enqueue_style( 'custom-style', get_stylesheet_directory_uri() . '/custom.css' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment