Skip to content

Instantly share code, notes, and snippets.

@davekuhar
Created August 20, 2013 22:13
Show Gist options
  • Save davekuhar/6288035 to your computer and use it in GitHub Desktop.
Save davekuhar/6288035 to your computer and use it in GitHub Desktop.
Replaces style.css as default style sheet with genesis.css. Adds custom.css for child theme customizations.
add_action( 'wp_enqueue_scripts', 'custom_load_custom_style_sheet' );
function custom_load_custom_style_sheet() {
wp_enqueue_style( 'custom-stylesheet', CHILD_URL . '/css/custom.css', array(), CHILD_THEME_VERSION );
}
//* Replace default style sheet
add_filter( 'stylesheet_uri', 'custom_replace_default_style_sheet', 10, 2 );
function custom_replace_default_style_sheet() {
return CHILD_URL . '/css/genesis.css';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment