Created
January 30, 2015 08:57
-
-
Save igmoweb/412204dd24652add8c94 to your computer and use it in GitHub Desktop.
Enqueue a dynamic style
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 | |
add_action( 'wp_enqueue_scripts', 'dolly_load_styles' ); | |
function dolly_load_styles() { | |
$css_url = add_query_arg( 'dolly-styles', 'true', home_url() ); | |
wp_enqueue_style( 'dolly-styles', $css_url ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment