You can either choose to edit your theme via WordPress dashboard or you can even use FTP or online file manager. You have to just place it in your current theme’s function.php file. I have already developed a plugin do this task, but if you still want to do it manually then follow the steps properly. Or you can go with the plugin which is, as usual, easy to install. You can either chose to edit your theme manually and add the custom code to your function.php file. How To Remove Query String From Static Resources Overall it might be helpful for web developers and designers but is a bad practice and have a great impact on your website’s loading speed. So developers use the query string as it is not cached by most of the browsers and CDN services.
Now if you push up any update to your plugin it will not be visible until the cached file expires. Now if anyone who is using your plugin and also using a CDN service then these static files ( both CSS and js files ) will be cached for weeks, months or for even one year. Let’s say you are a developer and you have created a plugin which has few CSS and js files. Actually, it’s one of the methods implemented by developers to instantly render new updates. They are used in both javascript and stylesheets.
The query string is a method by which different plugins pass the content values or carry the version detail.