How to see changes to style.css immediately in WordPress

Browser and server cache can be really annoying especially if you constantly make changes to your site through the CSS stylesheet. To work around this, you just need to replace the style.css call in the functions.php file of the theme with this code.

This will append a ?ver= string with the timestamp of when the stylesheet was modified. This will tell the browser that this is a new file and not use the one in cache. This also works for other CSS files as well.

Elmer Balbin

Web developer from Bacolod, Steam Sale hunter, and casual DotA 2 player.

about me

Leave a comment

How to see changes to js files immediately in WordPress

[…] is similar to my other tip but this one is for javascript files. This modifies the ver parameter to output the current time as […]

Get great deals on hotel rooms from all over the world BOOK NOW