Skip to content

Instantly share code, notes, and snippets.

@skydriver
Last active August 29, 2015 13:59
Show Gist options
  • Save skydriver/10450858 to your computer and use it in GitHub Desktop.
Save skydriver/10450858 to your computer and use it in GitHub Desktop.
Move style.css after all other styles only in wp_head (Genesis)
/**
* Method to move style.css after all styles only in wp_head (high priority)
**/
add_action( 'wp', 'genesisstyletrump_load_stylesheet' );
function genesisstyletrump_load_stylesheet()
{
remove_action( 'genesis_meta', 'genesis_load_stylesheet' );
add_action( 'wp_enqueue_scripts', 'genesis_enqueue_main_stylesheet', 999 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment