Web & Software Developer

Remove Query Strings from Static Sources in WordPress

This function will remove the “?ver” from the URLs of of your static resources on your WordPress site. For example, it will remove the “version” from the link to your .css and .js files. This can increase your page speed in tests by GTMetrix and Pingdom.

However, please note that some WordPress plugins depend on the “version” query strings and thus will break if you remove them. So, test to make sure that all of your plugins work after using this. (All of the 30+ plugins that I use work fine with this.)