By default .css and .js files used in WordPress themes and plugins will add a version number using ?ver=

To disable this add the following inside your theme functions.php file or as a new plugin:
//Remove version strings from CSS and JS links
add_filter( 'style_loader_src', 'wpxss_remove_version' );
add_filter( 'script_loader_src', 'wpxss_remove_version' );
function wpxss_remove_version( $url )
{
return remove_query_arg( 'ver', $url );
}
Was this post helpful?
Let me know if you liked the post. That’s the only way I can improve. 🙂

