Last active
February 7, 2022 15:35
-
-
Save cdils/8023496 to your computer and use it in GitHub Desktop.
Change order of where Genesis child theme stylesheet is loaded on theme initialization.
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
<?php //Remove this line | |
/** | |
* Remove Genesis child theme style sheet | |
* @uses genesis_meta <genesis/lib/css/load-styles.php> | |
*/ | |
remove_action( 'genesis_meta', 'genesis_load_stylesheet' ); | |
/** | |
* Enqueue Genesis child theme style sheet at higher priority | |
* @uses wp_enqueue_scripts <http://codex.wordpress.org/Function_Reference/wp_enqueue_style> | |
*/ | |
add_action( 'wp_enqueue_scripts', 'genesis_enqueue_main_stylesheet', 15 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment