Cascading-Style-Sheets-css

WordPress CSS NOT Updating

Working live on a server today, editing WordPress CSS files. Each was taking around 10 mins to update. I’d recently swapped over from FF to Chrome for Web Dev, so I thought this might be the issue. However, according to what I’ve read, WordPress itself caches the Stylesheet.

Fixes
I stumbled upon 2 fixes, a plugin (http://wordpress.org/extend/plugins/css-cache-buster/) or modifying the your stylesheet reference (usually in the header.php file) to the this:

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

3 thoughts on “WordPress CSS NOT Updating”

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>