• Resolved gdekadt

    (@gdekadt)


    Hi,

    It would be very helpful if WordPress could use the version number of the current theme in the faux query string that is appended to the main stylesheet link.

    This seems to be much more useful than adding the WP version number there as this already appears in the Meta/Generator tag.

    A secondary parameter could be used to avoid any conflict…

Viewing 1 replies (of 1 total)
  • This is honestly up to the theme author how he/she wishes to version their CSS. I, myself, always version my CSS based upon its actual version, not the theme. Reason being, is caching. Some cache services will only bust the css cache if it has a new version number/string.

    If, in-fact you do want your CSS to follow the theme version, here is a method that will be useful for future viewers: wp_get_theme Simply use that method to get the theme information, then output the version property directly to the style sheet version parameter.

Viewing 1 replies (of 1 total)
  • The topic ‘Versioning of CSS file based on CSS not WP version’ is closed to new replies.