Skip to content

Instantly share code, notes, and snippets.

@intelliweb
Created June 14, 2013 17:50
Show Gist options
  • Save intelliweb/5783875 to your computer and use it in GitHub Desktop.
Save intelliweb/5783875 to your computer and use it in GitHub Desktop.
Builder: Enqueue custom stylesheet (custom.css) in the child theme directory to keep custom CSS code separate from style.css -- custom.css overrides style.css
<?php
// Enqueue custom stylesheet in child theme directory
function intw_custom_styles() {
wp_enqueue_style( 'custom-style', get_stylesheet_directory_uri() . '/custom.css', '1.0.0', 'all' );
}
add_action('wp_enqueue_scripts', 'intw_custom_styles');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment