Return to Snippet

Revision: 37663
at December 15, 2010 01:41 by vagrantradio

Initial Code
<link rel="stylesheet" type="text/css" href="<?php echo bloginfo('stylesheet_url'). '?' . filemtime( get_stylesheet_directory() . '/style.css'); ?>"  />

Initial URL

Initial Description
Very useful line of code that I'm using very often to prevent old and cached CSS file being served to visitors. You just need to use timestamp of the file.

Initial Title
Add version to WordPress theme CSS file.

Initial Tags

Initial Language