Add Version Number to theme CSS file
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
// Version CSS file in a theme | |
// Uses a Unix Timestring to Version your CSS Files | |
wp_enqueue_style( | |
'theme-styles', | |
get_stylesheet_directory_uri() . '/style.css', | |
array(), | |
filemtime( get_stylesheet_directory() . '/style.css' ) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment