How to Integrate a Google Search Engine to Your Website

If you would like a custom search engine by Google on your website, you can simply create one here and just use the code they generate and place it on your site. However, if you want a more integrated look, I found a different solution.

The following code is the search box, so you need to place it wherever you want people to be using the search box:

[html]

[/html]

Now create page search.php and place this code on it (dont forget to add your CSE ID below):

[php]

Loading


[/php]

All credit goes to Google CSE Help Forum. Some of the source code was modified by me. If it isn’t working for you, have a look at the source and try theirs.

Leave a Reply

Sorry, you can not to browse this website.

Because you are using an outdated version of MS Internet Explorer. For a better experience using websites, please upgrade to a modern web browser.

Mozilla Firefox Microsoft Internet Explorer Apple Safari Google Chrome