Created
April 3, 2023 20:48
-
-
Save sunshinephotocart/6fa591c0b36cb1caf1def4619b21cb05 to your computer and use it in GitHub Desktop.
Allow CSS files
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
// Add this to your theme's functions.php file | |
// Or use this plugin https://wordpress.org/plugins/insert-headers-and-footers/ | |
add_filter( 'sunshine_allowed_css', 'sunshine_custom_allowed_css' ); | |
function sunshine_custom_allowed_css( $allowed ) { | |
$allowed[] = 'cookie'; // This must contain a keyword from the wp_enqueue_style from your plugin/theme | |
return $allowed; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment