Skip to Main Content

How to add the Google search engine to your WordPress Blog.

Divi: the easiest WordPress theme to use

Divi: The best WordPress theme of all time!

With over 901.000 downloads, Divi is the most popular WordPress theme in the world. It is complete, easy to use and comes with more than 62 free templates. [Recommended]

Adding a search engine to your site can allow many readers and visitors to find what they are looking for on your site, improving satisfaction and therefore conversion.

Indeed there are several plugins available that allow you to integrate search engines on your WordPress blog such as Lift: Search for WordPress.

But for those who do not want to install these plugins, there is another option that allows you to replace the search engine of your WordPress blog with a custom Google search engine. Install this plugin and do not watch the rest.

In this tutorial, we will show you how to add a Google search engine to your WordPress blog right now.


Create a Google Custom Search Engine for your WordPress Blog

To start, go to this address Google custom Search Engine, and log in with your Gmail credentials. Once connected, click on " New Search Engine "(New search engine) and provide the address of your WordPress blog.

The URL of your blog will also be used as the name of your search engine in the custom search engine creation interface. Then click on the button Create » (Create) to access the next step.

Easily create your website with Elementor

Elementor allows you to easily create any website design with a professional look. Stop paying expensive for what you can do yourself. [Free]

how add-engine search-google-blog

On the next page, you will receive a confirmation of the creation of your personalized Google search engine. An option will be offered, it will allow you to add the search engine to your blog or to retrieve the public URL of the latter. To add your search engine to your WordPress blog, click on the button « Get Code "(Get the code).


After getting the code, copy it because it will be useful for the next step.

Add the Google Custom search engine to your WordPress blog. Go to the location Appearance >> Editor in the admin area of ​​your blog and click on the file " searchform.php Open the file in the editor. Paste the code recovered earlier in this file. Make sure the file does not contain anything other than the code retrieved from Google.

If your theme does not have the file searchform.php Then you will need to create one using a text editor, such as Notepad and upload the saved file to the folder corresponding to your theme using an FTP client.

After pasting the code from your custom Google search engine, navigate to this location on Appearance >> Widgets and drag the widget « Search In the list of available widgets.


You can go to your site to see how the widget looks. Customize the colors and appearance of your Google search engine. Go to the Google page which allows you to create a personalized search engine, and modify your search engine.

You will be able to make some configurations on your search engine. The search engine customization interface offers you some already predefined themes, which can be more personalized.

After making the changes, save the changes by clicking on the button " Save "(record).


We hope this tutorial will allow you to integrate a custom Google search engine on your WordPress blog. If you have any remarks, please let us know. If you liked this tutorial, please share it on social media.

This article features 0 comments

Leave a comment

Your email address will not be published. Required fields are marked with *

This site uses Akismet to reduce unwanted. Learn more about how your comments data is used.

Back To Top