Remove Query Strings from Static Resources on WordPress

Did your Website Speed analysis Test throws an alert to “Remove Query Strings from the Static Resources”? If Yes, then you are landing on the right Page. Most of the Visitors like you landed this page after testing their website on Pingdom, GTmetrix, YSlow or Google Pagespeed Insights, finding solutions to Remove query strings from static resources like CSS & JavaScript etc. Now-a-days, after the Google Panda update, Website Loading Speed is Considered as a significant factor of Search Engine Ranking. Lower is the Website loading time, better will be the Search Engine Ranking.

Caching of Static Resources like CSS and JavaScript plays an important role in page loading time. Query Strings prevents Caching of Static Resources on Proxy servers and on browsers. By Removing Query Strings from Static Resources you can enable caching of static resources and can achieve a significant improvement in page load speed with less page load time.

In order to boost the website loading time, there are several factors that plays crucial role. Among those factors, “Removing the Query Strings from the Static Resources” is also a very important factor. If you did not checked your website yet, I recommend to go GTmetrix and check your website. Try to Correct those alerts and you will see a massive improvements on Page Loading Time of your website, hence Search Engine Ranking.

So Today in this Post, I’ll discuss:

  • What are the Query Strings in WordPress code structure?
  • Why you should Remove Query Strings from Static Resources?
  • How you can Remove Query Strings and Increase your WordPress Website Speed?

 

What are the Query Strings in WordPress?

Have you ever seen an URL that are appended with ‘?’ or ‘&’ ?? For Simplicity, Query Strings Resources are the URLs with a “&” or “?” at the end of the URL. They can be seen on images, CSS and JavaScript in most cases. Most plugins affix them to their URL’s. Most of the proxy servers do not cache CSS and JavaScript resources with Query Strings even if you have optimized Public Cache Control headers.
So normally, an URL having Query Strings will look something like this:

http://sitename.com/wp-content/plugins/js/some_js?ver=3.4.2

 

Why you should Remove Query Strings from Static Resources?

As I have already explained that the Query Strings prevent caching of Static Resources like CSS and JavaScript on Proxy Servers and CDNs . This will results into slow loading of the Website. So in order to fasten up the Website loading speed, we somehow must enable caching on Proxy Servers. This could only be Possible if we remove the Query Strings (which content “?” or “&” in their URLs) from the static Resources. And once you remove these strings, this will reflect in your increased page loading speed.

 

How you can Remove Query Strings and Increase your WordPress Website Speed?

I will Provide three Solutions to Remove Query Strings from Static Resources on WordPress.

  1. Using Plugin. [Recommended]
  2. Using W3 Total Cache. [Recommended]
  3. By editing Theme’s  functions.php file. [Partial recommendation; only if you know what are you doing.]

 

#Solution 1 : Remove Query Strings from WordPress Using Plugin

Query Strings from Static Resources can be removed by using a WordPress plugin called Remove Query Strings From Static Resources. The Plugin is very small in size, so that you can use the plugin without any worry. Just install the Plugin & Activate it, and you are good to go!
This is Probably the best solution if you are a newbie, or don’t want to change or mess up with the existing theme Code. I also recommend this solution because if you add Codes on Theme’s core files, it will remove upon updating/upgrading the Theme. So it’s better to use the minimal sized plugin.

 

#Solution 2 : Remove Query Strings Using W3 Total Cache Plugin

So, What Cache Plugins are you using? I highly recommend you to use W3 Total Cache plugin to improve/decrease the Page loading time. This plugin is a well-developed and coded, which dramatically decrease your website’s loading speed. And if you are not using this plugin, I would really suggest you give it a try, you won’t regret using it.

W3 Total Cache Plugin Provides an Option to Remove the Query Strings from the Static Resources. Follow these 3 simple steps to Remove the Query Strings:

  1. Go to “Browser Cache” tab on W3 total Cache Plugin.
  2. Find “Prevent caching of objects after settings change” option under General Settings. UNCHECK it !
  3. Save settings. Now ‘Empty all Cache’  &  you are done.

 

#Solution 3 : By editing Theme’s functions.php

This Option is recommended for Pro Users. Use it only if you know what are you doing. Just Copy the Following code and paste it at the last of the functions.php file (before closing php tag).

/*** Remove Query String from Static Resources ***/
function remove_cssjs_ver( $src ) {
if( strpos( $src, '?ver=' ) )
$src = remove_query_arg( 'ver', $src );
return $src;
}
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );

 

Conclusion:

Removing Query String from Static Resources like CSS & JavaScript is important, if you want to enable Caching of Static Resources on Proxy Servers and want to increase your website page loading speed. I have chosen the #Solution 3 (editing functions.php). After Removing the Query Strings from Static Resources on WordPress , I found the dramatic improvements of Page speed Grades on GTmetrix and Pingdom.

That’s all. Hope you find the Post Useful. Do share your Page Speed Grades, views & experiences regarding the above topic. And also, share which of the above method did you applied to Remove Query Strings from Static Resources on WordPress

Copy Or Export All Blogger Blog Posts To Another Blogger

In this post I am going to tell you that how you can copy all posts from one blogger blog to another blogger blog, or in other words how you can export one source blogger blog file and export it in destination or other blogger blog with some simple steps.

Blogger blogs are pre-hosted on google’s own servers and they do not allow us to access there database. But one plus in blogger is that we can download backup file from blogger blog that can be used to exporting all blog posts to other destination blogs. Downloading a backup file from blog is called exporting that blog, and uploading that same file to another blog is called importing a blog.
One thing that we should keep in mind is that in this pocess all posts pages and even comments too. And if you want that some posts should not be exported then delete them before you download blog.
So following are some simple steps by which you can copy all posts from one blogger blog to another. so these steps are as follows.
1). Login to your blogger account and and click on the source blog from which you want to copy all posts.

Select blog to copy all posts or to import

2). One left side of screen click on Settings and then Other.

Go to settings and select export content

3). The first heading is Import & back up, under this you will see two buttons, first Import content and second Back up content. just click on Back up content.

Backup content or download complete blog

4). A small pop up box with the button Save to your computer will appear. Click on Save to your computer. And a file will be downloaded and that is your back up file which contain all your posts, pages and comments.

5). Now go to your destination blog and go to Settings >> Other and under the import and backup head click on Import content.

6). A box will appear with a button Import from computer, click on it. And now you will be asked to browse your computer to select that backup file, select that file and upload it to copy all posts, pages and comments.

Its all done. You can see that all the source blog data is being copied to destination blog data. Have any further question in your mind ask in comments.

How To Setup Custome Domain To Blogger With Namecheap

As we all know that blogger is a free blogging service provided by king of internet google. It is hosted on google’s servers and they cost nothing for it. Even a free domain name containing a extention of blogspot ( .blogspot.com ) is free of charge provided to every blogger. So even if blogger want to remove .blogspot from its blog’s URL then he/she can purchase a custome domain from any domain registrar companey and can set it for blogger blog website.

Namecheap is one of biggest domain registrar companey in this world having millions of its customers and serving them reliable services. In this post I am going to tell you about, How you can setup a custom domain name to blogger blog purchased from namecheap with the help of images. You have to follow these following simple steps.
1). Go to blogger.com and select your desired blog from blogs list.

2). then click on settings and select basics (the first option in settings).

3). Now you will see a publishing section containing your old .blogspot.com domain and a link “+set up third-party URL for your blog“. Click this link.

Setting up custom domain
4). Third party domain settings are open now. Insert your custom domain name (.com, .net, .org, .cc, .co or whatever you have purchased) in front of http:// field and click on save.
Getting Host Records From Blog
5). Now page will refresh and will show an error “We have not been able to verify your authority to this domain.“, and you will be provided with two CNames and will be asked to enter them to your domain DNS HOST RECORDS.
Host Records For Namecheap
6). Now go to your namecheap account, go to Domain List, select your desired domain, go to Advance DNS Settings, HOST RECORDS and click on ADD NEW RECORD.
Adding records in advance DNS host records
7). Create 3 new records.
  • URL Redirect with Host @ to redirect non-www version to www version of your domain, and enter you domain with www in Value field.
  • A CName with Host www and enter there the Value “ghs.google.com”.
  • One more CName record with Host and Value provided by error in blogger domain setting page. It is different for every blog.

And remove/delete all oter records.

Your New records
8). Have you entered all three records,,? then click SAVE ALL CHANGES. And Now you have done all with your domain.

9). Now final step is that go back to your blogger accout and hit Save buttin again. it will save setting suddenly. If not, then do not worry and do not alter your namechesp setting. Just reenter your domain in blogger after an hour and see your custome domain is accepted for your blogger and old blogspot.com domain will be redirected to your new one.

Saving new custom domain for blogger
Its all done now you can use your blog with custom donain. If you found this tutorial helpful, then give your feedback in comments.

How To Set up a Custom Domain Name To Blogger With GoDaddy

As GoDaddy.com is one of most reliable and famous domain name registrars and hosting provider company which have millions of its users all around the world. So setting a custom domain name for blogger blog with GoDaddy is not bad idea.

So in this post I am going to tell you all about that how you can setup a custom domain name from Godaddy to blogger with the help of images. So… here we start.

1). Login to you GoDaddy account.
2). Go to domains and click on manage.
3). Now go to domain name you want to assign for blogger and click on DNS Zone File.

Setting GoDaddy domain to blogger blog

4). Now Under the head A(Host) create four new records with host value @ and Point to following four lines.

  • 216.239.32.21
  • 216.239.34.21
  • 216.239.36.21
  • 216.239.38.21

5). Now go to blogger.com, go to your desired blog, go to Settings > Basic and click on +add a custom domain.

Adding Custom Domain To Blogger Setting

6). When you enter domain and save, you will see an error and will get two CName(Alias) record as shown below.
7). Next step is that under the head CName(Alias) create two new records, where first record will get the Host value as www and ghs.google.com. value of Point To. But second record is different  for each and every blog. Add it too CName too and save settings. Settings will look line as in following picture.

settings for custom domain for blogger

8). Now finally go back to blogger and put your custom domain in settings with www version and hit save.

You have all done.

Hope you will find this tutorial helpful and informative. So don’t forget to give your feedback in comments.

How to Generate Traffic Using Only Free Methods

Putting up a company would of course require a lot of things, to get straight to the point, you need a capital. To make money requires money as well. But of course, with the versatility the Internet offers, there are many ways you could find that could help optimize the potential of your site or business in generating traffic.
While there are ways to jumpstart your traffic flows, many sites don’t have the resources that others have to generate more traffic for your site. Well, you don’t have to spend a cent; all you need is the proper mindset and a lot of eagerness. You also must have the drive and perseverance to do hard work and research to generate more traffic for your site.
How sweet it is to have more traffic for your site without spending a single cent. Now it’s a sure thing that many sites have articles that offer tips and guidelines in how to generate traffic using only free methods.

How to Generate Traffic Using Only  Free Methods
Because it is possible, you don’t need to speed a single cent, it may take time, to say honestly, I’m not going to beat around the bush with you. You get better chances by paying for your advertisements, but at least you get a fighting chance with some of these free methods I’m about to tell you.
·         Take advantage of online forums and online communities. The great thing about forums and online communities is that you can target a certain group that fits the certain demographic that you are looking for. You can discuss about lots of things about the niche that you represent or offer. Another great advantage is that you know what you are getting into and you will be prepared.
With online communities and forums you can build a reputation for your company. Show them what you are made of and wow them with your range of expertise about the subject, with that you can build a reputation and build trust with the people in your expertise and knowledge.
·         You can also make use of newsletters. Provide people with a catalog of your products and interesting and entertaining articles. If you make it really interesting and entertaining, more people will sign up for your newsletter and recommend it to other people. The more people who signs up for your newsletter, the more people there will be that will go to your site increasing your traffic.
While the first two methods above have been discussed briefly earlier, here’s another:
·         Another great idea is trading links with other sites. You don’t have to spend a cent. All you have to do is reach an agreement with another webmaster. With exchanging links, the efforts both sites do will benefit both sites. Every traffic that goes to the site could potentially click on the link of your site and visit your site as well. This works well especially when both sites feature the same niche.
·         Write articles that could pique the attention of people that have interest in your product. Try writing articles that will provide tips and guides to other aficionados. Writing articles that provide good service and knowledge to other people would provide the necessary mileage your traffic flow needs.
Many sites offer free submission and posting of your articles. When people find interest in your articles they have a good chance of following the track by finding out where the article originated. Include a link or a brief description of your company with the article and there’s a great probability that they will go to your site.
·         Write good content for your site. Many Search Engines track down the keywords and keyword phrases your site uses and how they are used. It is not a requirement that a content should be done by a professional content writer. You could do your on but you have to make content for your site that is entertaining as well as informational. It should provide certain requirements as well as great quality.
Generally, Internet users use Search Engines to find what they are looking for. Search Engines in return use keyword searching in aiding their search results. With the right keywords, you could get high rankings in Search Engine results without the costs.
All of these methods and more will drive more traffic to your site for free. All it takes is a bit of effort and extended man-hours. Learn all you can about the methods depicted here and you will soon have a site with a great traffic flow without the usual costs that come with it.
3 Ways You Can Generate Cash Using Google Adsense

3 Ways You Can Generate Cash Using Google Adsense

In many webmaster forums, you are likely to come across this question: “How can I make money with Google Adsense?” Google Adsense is arguably the most popular pay-per-click advertising program today. Many webmasters are earning considerable money by displaying Google Adsense on their sites.

Yes, it is very possible to make money with Google Adsense. There are several effective and proven ways you can do this. The best part is that they are not complicated ways; they are in fact very simple and easy to implement. Of course, exactly how much you make from Google Adsense largely depends on how much effort you put into your sites. Don’t fall into believing that you can make money from Google Adsense overnight. Like other types of work, you need to spend time as well as have the commitment and perseverance.3 Ways You Can Generate Cash Using Google Adsense

With all that said, you will learn three effective ways you can generate cash with Google Adsense — through niche sites, forums and blogs.

Niche Sites: Targeted Market Equals Targeted and Higher Adsense Clicks

The word “niche” is today’s buzz word. A niche is a specific market you want to focus on. If you are in the antique business, exactly what kind of antique do you deal with? Are you in the antique furniture business? antique dolls? antique cars? That’s your niche.

Niche websites are sites that are focused on very specific markets or audience. Instead of a broad category, you narrow down into a target market or audience. For instance, a guitar website can be further made specific and focus on Fender Stratocaster guitars. People who are into Fender Stratocaster guitars are your target audience. Google Adsense ads that appear on this particular niche website appeal to your target audience and visitors. By being specific, you can generate higher clicks to your Google Adsense, which translate to higher Google Adsense earnings.

If you want to maximize your Google Adsense earnings, put up several niche websites instead of one website devoted to a broad category or topic. Instead of putting up a website about cars, put up several small websites focused on car repairs, care restoration, antique cars and such. By narrowing down your website’s focus, you can attract targeted visitors who are likely to click on your Google Adsense ads.

Forums: Placing Google Adsense Ads that Stand Out

Do you run a highly active forum or online discussion board? If your forum receives a lot of traffic and has many members who regularly participate in online discussions, you can monetize your forum pages by inserting Google Adsense in them. While forum users are known to be “ad blind”, you can insert Google Adsense codes smartly.

For instance, you can make your Google Adsense ads stand out by using very bright colors. On niche sites, it is recommended that your Google Adsense ads blend in with the site. In online forums, however, you can make money with Google Adsense by making the ads stand out. You can also make Google Adsense appear after a certain number of posts. Many forum owners have discovered that Google Adsense ads placed at the bottom of the last post on every page generates a lot of clicks.

Blogs: Easy to Monetize with Google Adsense

Today, many are able to establish an online presence and have their voices heard. They do this by creating and maintaining their own blogs. In the last two years alone, literally hundreds of thousands of blogs have cropped up. Blog software like WordPress and blog networks like Blogger make it easy for anyone, even the least techie, to set up his or her own blog and make money from it. There are bloggers who are reportedly making four-, five- and six-figure yearly income just by placing Google Adsense on their blogs.

Since Blogger is owned by Google, people with blogs on Blogger can easily integrate Google Adsense into their account. Even if you don’t have an account with Blogger, you can still make money displaying Google Adsense ads on WordPress-powered blogs hosted on your server or third-party host. Blog software like WordPress have Google Adsense plugins. This means you can easily insert Google Adsense ad codes in your blog posts with just a click of a button.

To make the most out of your Google Adsense ads, it is recommended that you place a Google Adsense unit after each of your blog posts. If you are posting a long article, consider placing a Google Adsense unite in the middle of the article. And if you technically inclined (or you aren’t afraid of a challenge), you can insert Google Adsense codes into your blog template. Do it this way and your Google Adsense ads will display on all your blog pages.

There you have it — three ways you can generate cash from Google Adsense. Niche sites, forums and blogs are only three of the many ways you can make money from Google Adsense. If you are new online, start with a blog. Create an account on Blogger.com and test out the waters. As you become comfortable and acquire more technical skills, you can advance to creating niche sites and starting your own online forums and monetizing with Google Adsense.