Skip to content

Instantly share code, notes, and snippets.

@Komock
Last active July 22, 2016 05:35
Show Gist options
  • Save Komock/1468608c7c135bd63bebbe8ba3c92e59 to your computer and use it in GitHub Desktop.
Save Komock/1468608c7c135bd63bebbe8ba3c92e59 to your computer and use it in GitHub Desktop.
Remove/replace stylesheet on Genesisframework
<?php
// Remove
remove_action( 'genesis_meta', 'genesis_load_stylesheet' );
// Replace with custom
add_filter( 'stylesheet_uri', 'custom_replace_default_style_sheet', 10, 2 );
function custom_replace_default_style_sheet() {
return CHILD_URL . '/green-pack.css';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment