Created
June 8, 2018 21:40
-
-
Save timelsass/77c4bdf2f54473dff5f1e25590d86673 to your computer and use it in GitHub Desktop.
Example of changing Kirki's inline CSS priority to load before all styles.
This file contains hidden or 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 | |
/** | |
* Child theme functions.php | |
* | |
* @since 1.0.0 | |
*/ | |
// Enqueue kirki generated inline CSS first. | |
add_filter( 'kirki_config', function( $config ) { | |
$config['styles_priority'] = 1; | |
return $config; | |
}, 99 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment