Categories
Technology

Query Strings Remover: WordPress Plugin

Query Strings Remover

Query Strings Remover plugin removes query strings from your static resources like CSS and JavaScript files. It will improve your cache performance and the overall score in Google PageSpeed, YSlow, Pingdom and GTmetrix. Just install and forget everything, as no configuration needed.

After installing “Query Strings Remover” sure empty you cached resources in order to see the magic of this plugin.

Download » Query Strings Remover

Query Strings Remover does not use even 0.1% of your server resources, so you do not have to worry about adding this plugin on your blog or website.

How to Install Query Strings Remover?

  • Upload the ‘query-strings-remover’ folder to the ‘/wp-content/plugins/’ directory.
  • Activate the plugin through the ‘Plugins’ menu in WordPress.
  • You are done, enjoy.

If you face any kind of issue with this plugin, please raise your comments below in comment section. Your comments and feedback are appreciated.

By AtulHost

Hi, I'm Atul Kumar Pandey; also known as AtulHost on the web, a full-time blogger by profession with an objective of sharing fresh and honest contents in business and technology niche.

31 replies on “Query Strings Remover: WordPress Plugin”

I highly suggest mate use this because it is very simple to use. I made it very easy that you have to just install and activate the plugin; after that no configurations needed.

A must have plugin for all those who does not know how to program but want to improve their performance.

Hello Atul,
I’ve activated the plug in, emptied the caches and retested the speed, but I am still only receiving a grade of 35 on “Remove query strings from static resources” and the overall grade only increased one point. Any suggestions?
Thanks.

Hi Jack,

I can see that you are using JetPack plugin which creates so many links from external domains like i0.wp.com/image.jpg and this plugin only help you to remove query strings from the links hosted by you only. The best thing you can try is to disable most of the external links which are not required. As per my knowledge you have enabled JetPack Photon module which is generating more number of query strings.

@AtulHost

This is a great addition to this fantastic “WordPress”! I live in a predominately video city and this will be very beneficial for my clients to use. Great update!

Regards
Jessica

I use your plugin with positive results. Thanks. My question: should I be concerned that you have not updated the plugin for WP4.2 or WP4.3?

Welcome Craig, I found there is no need for capability since the WordPress still supports it without any issue. And the new update will soon come. Thanks for using it.

Hi David as I see you are using W3 Total Cache that has build in query strings removal mechanism so I don’t think using this plugin is needed. Just enable this setting in W3 Total Cache.

Hi my site is
http://www.lankanewspost.com
I had your plugin installed. But it has stopped my child theme working properly. If I deactivate the plugin the child theme accept new css changes but breaks the site by removing old css.I dont mind the plugin as long as the child css is in play. Please advise

Hello Harsha J. as you are using child theme please import complete functions.php too because our plugin uses the functions based on functions.php it will simply resolve your issue for sure.

I copied the functions.php file from parent to child in the c panel. But it gives a white page with a warning saying

Warning: require_once(/home/——/public_html/wp-content/themes/wordx_child/theme-options.php): failed to open stream: No such file or directory in /home/——/public_html/wp-content/themes/wordx_child/functions.php on line 7

Fatal error: require_once(): Failed opening required ‘/home/——/public_html/wp-content/themes/wordx_child/theme-options.php’ (include_path=’.:/usr/local/php56/pear’) in /home/——/public_html/wp-content/themes/wordx_child/functions.php on line 7

What am I doing wrong?. Sorry for your trouble

Just revert this step what you have did now. I checked your site using inspect element. I see no query strings which simply means plugin is working. The reason behind the theme get breaks is because of minification or above the fold optimization things break your site.

One small suggestion. Never show this error line in public without removing your cPanel’s username (like abcd) which looks like /home/abcd/public_html/ because you are revealing the username in public. I have dashed the username in your comment.

Thanks Atul for correcting my silly mistakes on the post.I am happy with the site as it is with your plugin active. Only problem with that is it completely ignore the child css sheet. That is the problem. As soon as the plugin is deactivated child sheet works perfect. That is what I can’t understand

Great buddy. I will suggest to view your themes documentation if you want to add stylesheet to child theme. As far as you are happy now I hope nothing more is required.

Hi Atul,

My site is http://www.mavencomputers.com.au

I have installed Query Strings Remover and am also using Puzzler for css/js aggregation, and a content delivery network. This combination has my site very fast, and most query strings gone however, the aggregated style sheets still have query strings. This has the effect of making the main stylesheets load last, so I am keen to fix it. Do you have any advice?

This is my GTMetrix score 97% and 91%, so I am not complaining. :)

https://gtmetrix.com/reports/www.mavencomputers.com.au/ZQbozBDO

Hello Michael Sheridan,

Since you have our Query Strings Remover plugin, you may see that scripts mostly css and javascripts having query strings at the end gone, but when you have scripts which are loading from other that your domain, if they are using query strings they would still present. It is not possible to modify the data which is coming from others but we can have complete control over what we have.

Apart from this you can limit the numbers of HTTP Request made via combining css and javascripts; as I see you are using CloudFlare so no need for this here.

Still having a good website design may have some negative scores in speed factors; because we can not break site’s functionality for few score, and thus we should focus on our side that our main files should loads fast. Use of ads, our google analytics cookie, sidebar widgets like facebook and twitter significantly kills the speed ranks. So there is hardly any need of improvements at your end.

Hello, thanks for this plugin. I’m wondering does it encode the query string parameters into the url instead or does it just remove them?

I had your plugin installed. But it has stopped my child theme working properly. If I deactivate the plugin the child theme accept new css changes but breaks the site by removing old css.I dont mind the plugin as long as the child css is in play. Please advise

Hi Jenifer,

I can see something is going wrong, just do this step…

1. Import function.php in your child theme (if not there).
2. Paste following code to function.php file at the end.

// QUERY STRINGS REMOVER
function qsr_remove_script_version( $src ){
$parts = explode( '?ver', $src );
return $parts[0];
}
add_filter( 'script_loader_src', 'qsr_remove_script_version', 15, 1 );
add_filter( 'style_loader_src', 'qsr_remove_script_version', 15, 1 );

Check for the results.

Hi Atul, I just downloaded your plugin to remove query strings, but i can’t find the plugin in my WordPress dashboard. Can you please guide or is it automatic and i just need to activate?

Hi, Ameer, just download it and activate from the installed plugins page. That is it. It will do magic without any settings and all. It is installed, activate and leave plugin.

Greetings, I installed your plugin and am hoping you could advise and guide me how to correct the continued report on pingdom that I have a ton of query strings “?” still affecting the site. Thanks Ellie.

Hello Ellie. Not all query strings are bad, you only need to worry about strings from your side; by default plugin will remove strings from local resources which causes no-cache issue. Rest any external strings are not possible to remove because they are hosted by third party websites. Only possible solution is host all the content (css, js) on your server and plugin will do its magic.

A side note: Query strings do not create issue unless it is set to cache. In WordPress “?” a query string defines dynamic content that is why all strings are set to no-cache in WordPress.

Hello, I was updating my website and all plugins to the latest as I haven’t done so in a while. After I was done I had a problem with my NextGEN plus plugin. I would get an error on my pages I had that plugin installed on. This was the error “Fatal error: This version of Galleria requires nextgen_pro_horizontal_filmstrip theme version 1.6 or later” I then deactivated all of my plugins except for the NextGen gallery and activated every other one, one by one checking my website as I went. This plugin ended up somehow conflicting with the NextGEN plus plugin but not the free version of NextGEN. I let them know as well that way you all know and hopefully, whoever’s plugin is causing the issue can be fixed.

Thank you!

Comments are closed.