How to add sitelink searchbox of your Website to Google search

Tutorial By:
Team zdidit

Reviewed by:
On February 2, 2016
Last modified:February 2, 2016


You must have seen that there are some websites which have searchbox displayed right on the Google search. This is somethings that even you can achieve by adding some code to your website. If you think that how this is helpful, then you should know that the when someone likes to search anything on your website then they can do this right from the Google.

What we are talking about is that if you have searched for the keyword buzzfeed then you will see a website with some links and a search box dedicated for searching on that website alone.

sitelinks-search-in google

This was introduced to make it easier for viewers to search on a specific site, as this can be done right from the google search without visiting the website.

Mostly this is done by Google itself for the popular websites, you can do this too with the use of some code, This well add sitelink searchbox, but when someone try to search for it, the results will be from your website rather than on google search. After all this is done by you not Google, so we have to accept it.

How to add sitelink searchbox of your Website to Google search

Now lets start with the process, but before we start we like to tell you that there are two ways by which you can do this one is the coding way and other one is by using a plugin.

1) Using the code

To use this step first you have to find out the your search URL, you can do this easily. Go to your website and search for any keyword you like. when the result will come up, then you will note that in URL there is a ?s=keyword or ?search=keyword which you have to note down. This specifies how the search function runs on your website.

To get this you first have to add the below code to your homepage, this will tell Google that you have added the search action schema to your website.

<script type="application/ld+json">
  "@context": "",
  "@type": "WebSite",
  "url": "",
  "potentialAction": {
    "@type": "SearchAction",
    "target": "{search_term}",
    "query-input": "required name=search_term"

Before you just copy the code and place on your website you should change the URL with the URL of your own website.

2) Using a plugin

If you don’t like to go with all the trouble of putting and editing code in your website then you can use a plugin to get the job done. There is a plugin called sitelink searchbox which is a free plugin that can take care of all the needs.


You just have to install and activate it, this plugin adds the JSON-LD this will automatically take care of adding sitelink searchbox of your Website to Google search.

Disable site link searchbox

If at any time you like to opt out of this then you just have to add below meta tag to your website.

<name="google" content="nositelinkssearchbox">

This above code will tell Google that you don’t like them to display the sitelink searchbox on the search.

For more tutorials visit our how to section and there you will be able to find many more resourceful articles.

Also Read

If you liked the post then please share it, and to ask a question or for starting a conversation use the comment section below.

You can follow us on twitter, facebook, Google+

Team Zdidit

Team Zdidit take care of all the content creation for zdidit. This team is supervised by Achin Verma

You may also like...

Leave a Reply

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