Comments
  • Bill Erickson February 1, 2013 at 4:58 pm

    (Here’s some context to the Gist)

    When Genesis enqueues the child theme’s stylesheet, it checks to see if ‘CHILD_THEME_VERSION’ is defined. If it is, that is used as the version. If it isn’t, the parent theme’s version number is used (view source on my site to see ?ver=1.91, which is Genesis’ current version).

    The code in the Gist sets the child theme version to the last modified date of style.css. So when you modify it, the URL to your stylesheet changes and the cache is busted.

    • Ngo Khong February 3, 2013 at 9:10 pm

      Very nice snippet. I’m using Genesis but I think this can be applied for other themes as well.

  • Zach February 1, 2013 at 5:14 pm

    VersionIT http://wordpress.org/extend/plugins/versionit/ a plugin I made with w-shadow also does this automatically for you without using query args ;)

  • Post a comment