How to Install Google Custom Search on WordPress – If you have visited several sites and saw that there is a search feature that says Google Custom Search and you want to have that search feature installed on your WordPress site, then in this article I will provide a complete tutorial on how to install Google Custom Search on WordPress and easy.
Indeed, WordPress when you first installed it already brought a search feature without the need to install a plugin, and the default search feature of WordPress is quite good in my opinion and there are also many other plugins in the WordPress directory available that can improve your search results.
But for those of you who don’t want to install a lot of plugins to improve search functionality, there is another option, which is to replace WordPress search with custom search from Google.
Create a Google Custom Search for a WordPress Site
To install Google Custom Search on WordPress, you first need to create it by visiting the site Google Custom Search Engine and log in using your Google account (How to Create Email in Gmail with Computers and HP Smartphones).
Once there, click the button Create a Custom Search Engine and enter your WordPress site URL. The URL will also be used as your search engine name in your Google Custom Search Engine dashboard, and don’t forget to select the language you want to use. Click the button “CREATE “ to continue to the next step.
On the next page, you will see a notification that you have successfully created a google custom search. You will be presented with the option to add it to your site or get the Public URL and Control panel. To add this custom search engine to your WordPress site, please click the button Get Code.
On the next page you will get a code for a custom search engine. Copy the code as it will be needed in the next step.
Installing Google Custom Search on WordPress
After you copy the code earlier, please enter the admin of your WordPress site and enter the menu Appearance »Editor and search for files searchform.php to open it in the editor. Paste the code that you copied earlier in the file. If there is code in it, please delete it and replace it with the code from Google custom search.
If the theme you are using doesn’t have an searchform.php, then you need to create it first using a text editor like Notepad and upload it to a directory WordPress theme
You are using FTP client.
After pasting the Google custom search code, please save it and now enter the menu Appearance »Widgets From dropping the search widget or drag and drop the search widget to the sidebar area of your site. And see if your site is installed properly and please try to do a search.
Google Custom Search Design
In Google Custom Search, you can also make color and appearance changes to match your site design. Look at the menu bar on the sidebar on the left and click Look and Feel. Google Custom search has several premade themes available for you to choose from.
You can also click the customize tab and select a font color, border and background. After you have finished setting the appropriate view for the search box, please click save and refresh your WordPress site and see the changes you have made.
Above is a complete guide on how to install a custom Google search on a WordPress site, please try it and hope this article is useful. 🙂