Created
February 22, 2014 22:24
-
-
Save badfeather/9163346 to your computer and use it in GitHub Desktop.
Prevent caching of a Wordpress stylesheet by adding a timestamp to the URL
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
<link rel="stylesheet" href="<?php | |
echo get_stylesheet_uri() | |
. '?t=' . filemtime( get_stylesheet_directory() . '/style.css' ); | |
?>" type="text/css" media="screen" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment