Last active
August 29, 2015 13:59
-
-
Save skydriver/10450858 to your computer and use it in GitHub Desktop.
Move style.css after all other styles only in wp_head (Genesis)
This file contains 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
/** | |
* 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