If you would like to add Google search to WordPress, there are 3 methods listed below. Having a good search engine on your WordPress site, helps users find content much faster. Unfortunately, the default WordPress search is not good. Let’s get started.

wordpress google search

Add Google search to WordPress using these 3 methods-

Using Google custom search

  1. Go to https://cse.google.com/
  2. Enter your wordpress website URL under sites to search.
  3. Create a custom search engine.
  4. Go to setup-> Code and copy the code.
  5. In your wordpress site, access the searchform.php file, delete its contents and add the google custom search code there and save the file.
  6. Go to Appearance->Widgets from your Admin Dashboard. Add the Search widget to your wordpress sidebar.

Using WordPress plugin

WP Google Search

  1. Install and activate the WP Google Search plugin.
  2. Create a google custom search engine and copy-paste the search engine id (cx id) into the plugin settings.
  3. Use WP Google Search widget or [wp_google_searchbox] shortcode to place search box on your site.

Using the WP Fastest site search plugin

One of the major drawbacks of Google custom search is that it contains ads. The WP fastest site search plugin adds a Google-like search engine to your WordPress site.

WP Fastest Site Search

  1. Install and activate the WP fastest site search plugin.
  2. Go to WP fastest site search, sign up, enter your website URL and intital website crawl.
  3. Copy-paste your API Key into the plugin settings.
  4. If the above methods don’t work, copy the search engine code from here.
  5. Now copy-paste this code into your searchform.php file.
  6. Take live WordPress google search.wordpress google search

muthali ganesh

Muthali loves writing about emerging technologies and easy solutions for complex tech issues. You can reach out to him through chat or by raising a support ticket on the left hand side of the page.

You may also like