Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.