Beginners are always looking for new ways to add cool features to their WordPress blogs. One of those features is the Google search box they see on other sites. You can add this search box to your WordPress website and it's pretty easy to do.
<h2>Creating Google Search to Your WordPress Site</h2>
Some themes have this feature built into the layout of the actual theme. If this is the case, you may just need to enable the option or add the search widget to the right spot.

However, if your theme doesn't have Google search built in or the search it uses isn't that good, you can add a custom Google search box with the following steps.
<ul>
	<li>Step #1 - Go to the <a href="https://www.google.com/cse/">Goolge Custom Search Engine, here</a>.</li>
	<li>Step #2 - Click "Create a Custom Search Engine"</li>
	<li>Step #3 - Add your website domain name to the "Site to Search" section</li>
	<li><img src="https://itxdesign.com/wp-content/uploads/2014/04/GoogleCustomSearchforSite.png" alt="Google Custom Search for Site" width="211" height="94" class="aligncenter size-full wp-image-6797" /></li>
	<li>Step #4 - Select the Language and Name your Search Engine</li>
	<li><img src="https://itxdesign.com/wp-content/uploads/2014/04/LanguageAndSearchName.png" alt="Language And Search Name" width="341" height="192" class="aligncenter size-full wp-image-6798" /></li>
	<li>Step #5 - Click the "Create" button</li>
</ul>
Now, you have crated your custom Google search for your website.

Note: You can also adjust the "advanced" settings if you need to exclude something from the search or you want to customize the search results that will show up on your website.
<h2>Adding Custom Google Search to Your Website</h2>
After creating your search, you will need to add it to your WordPress website. Login to your WordPress dashboard and go to the <strong>Appearance &gt;&gt; Editor</strong> section. You will be looking for either a searchform.php file.

Some themes don't come with this file. If this is the case, create the searchform.php file in notepad or another text editor. Then, once you add the Google search code, you can upload it to your theme folder in cPanel.

This is the section you will post the code from Google into, which you get by clicking the "Get Code" button.

<img src="https://itxdesign.com/wp-content/uploads/2014/04/GetCodeButton.png" alt="Get Code Button" width="401" height="281" class="aligncenter size-full wp-image-6799" />

Make sure the searchform.php file only contains the code you copied from Google.

Once you've edited or created the searchform.php file, you will need to go to <strong>Appearance &gt;&gt; Widgets</strong>. You will need to locate the search widget and add it to the section of your site you want to display your custom search box.

<img src="https://itxdesign.com/wp-content/uploads/2014/04/SearchWidget.png" alt="Search Widget" width="355" height="220" class="aligncenter size-full wp-image-6800" />

You can give the search a title, as well.

<img src="https://itxdesign.com/wp-content/uploads/2014/04/SearchInSideBar.png" alt="Search In SideBar" width="435" height="256" class="aligncenter size-full wp-image-6801" />

<h2>How to Customize Your New Search Box</h2>
Along with adding the Google custom search box to your website, you may want to customize it to fit better with your design. This can be one from your Google account. Go back to the Google Custom Search website and find the "Customize" tab. It's located in the "Look and Feel" section.

<img src="https://itxdesign.com/wp-content/uploads/2014/04/CustomizeGoogleSearch.png" alt="Customize Google Search" width="450" height="318" class="aligncenter size-full wp-image-6802" />

This section will allow you to change the font, colors and other options associated with your Google Custom Search box. You can use the same colors as your site or matching colors to make the search look like it's a part of your WordPress website.

This section of the Google Custom Search website is pretty easy to use. Just choose the part of the search you want to change, such as the actual search box or the search button. Then, you will have all the different options you need to customize this section of the search.

Not only can you customize the search box, but also the way the results show up. You can edit the title, URL and snippet to match the color of your specific WordPress site.

The Google Custom Search website will also allow you to view Statistics from users that have searched your site. This is a great way to see what visitors are looking for and provide better content for your specific users.

Along with the "Customize" tab, you can use the other three tabs to change the look and feel of your custom Google search. Make sure you save your changes, get the new code and replace the old code in the searchform.php file or your changes won't show up on your website.

Now you know how to add the custom Google search box to your WordPress website. This can make it much easier for users to find the right content when they are searching on your website.