Skip to content

Instantly share code, notes, and snippets.

@JPry
Created June 25, 2012 20:52
Show Gist options
  • Save JPry/2991153 to your computer and use it in GitHub Desktop.
Save JPry/2991153 to your computer and use it in GitHub Desktop.
Version your stylesheet when using Genesis theme
<?php
remove_action( 'genesis_meta', 'genesis_load_stylesheet' );
add_action( 'genesis_meta', 'jpry_load_stylesheet' );
function jpry_load_stylesheet() {
$theme_info = wp_get_theme();
wp_enqueue_style( 'jpry-style', get_stylesheet_uri(), array(), $theme_info->Version, 'screen' );
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment