If you think to convert your built in search function to Google’s powerful search function, the please read this article to convert your WordPress search function to Google Search Function. Converting your WordPress site search to Google search which finds content of your site is easy and simple. After doing this, your WordPress inbuilt search button will launch the Google Custom Search which is more comfortable than the original WordPress search. Following the given simple steps will make your WordPress site search form into the Google Custom Search.  

As the first step, we need to find out the “searchform.php” file from your website files. Normally it will be under the main theme folder. Locate that file and open it with Editor.

  Before attempting to change any thing, do remember to take the back up of the site and “searchform.php” file. To take backup of the “searchform.php” file, you just need to copy and paste the contents into any notepad file.   Now we need to open your custom Google search code. If you find any difficulty to find the one, you may copy and paste the below given code to any notepad text file. After that you need to change the Google id in that notepad file. After changing the Google id, you need to save the file. Themify is the theme that we used in this example. You may see a different term in this place based on your theme.

  Now we can delete the contents of the “searchform.php” file after taking the proper backup. The main step is to copy the custom Google search file you just prepared is to be copied into the “searchform.php“. After copying it, update the file and the changes will be updated.

You may need to enable the search button from your theme settings to view the affected changes. Once completed successfully, typing any query in the search button will open the Google custom search window and the search result will follow. You can revert the changes at anytime by restoring the contents of the “searchform.php” from the backup file created.

Δ

Convert your Wordpress Search as Google Search - 18Convert your Wordpress Search as Google Search - 94Convert your Wordpress Search as Google Search - 21Convert your Wordpress Search as Google Search - 24Convert your Wordpress Search as Google Search - 77Convert your Wordpress Search as Google Search - 81Convert your Wordpress Search as Google Search - 72Convert your Wordpress Search as Google Search - 34Convert your Wordpress Search as Google Search - 43