Skip to content

Instantly share code, notes, and snippets.

@timelsass
Created June 8, 2018 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timelsass/77c4bdf2f54473dff5f1e25590d86673 to your computer and use it in GitHub Desktop.
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.
<?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