Created
June 14, 2013 17:50
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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