Site Search Box
-
This post is deleted! -
Hi Ravi. Just to clarify, are you trying to recreate this? http://googlewebmastercentral.blogspot.com/2014/09/improved-sitelinks-search-box.html
-
It will not always show
The best chance I got was when I had a site receive a message in webmaster tools about using it. That's when it showed up quickly.
I got it to show with an older branded site that didnt receive a message.
So it really depends on the site.
-
Hi Ryan & DennisSeymour,
I just wanted to know how long it will take to show site search box in Google SERPs after implementing. One more thing I would like to confirm both the parts I have used on home page or only top one. If both the part I have to use where to place second part I mean
part.```
<script type="application/ld+json"> { "@context":"http://schema.org", "@type":"WebSite", "url":"https://www.example.com/", "potentialAction":{ "@type":"SearchAction", "target":"https://query.example.com/search?q={search_term_string}", "query-input":"required name=search_term_string" } } script><div< span="">itemscopeitemtype="http://schema.org/WebSite"> <meta< span="">itemprop="url"content="https://www.example.com/"/> <form< span="">itemprop="potentialAction"itemscopeitemtype="http://schema.org/SearchAction"> <meta< span="">itemprop="target"content="https://query.example.com/search?q={search_term_string}"/> <input< span="">itemprop="query-input"type="text"name="search_term_string"required/> <input< span="">type="submit"/></input<></input<></meta<></form<></meta<></div<> ``` Thanks -
You need both parts. The top is a script that belongs in the of the page that has a search box and the other is the actual markup that goes around the search box. There is no time to implementation to live. You can check any errors on your markup within Webmaster Tools though: https://support.google.com/webmasters/answer/2650907?hl=en That should point out if anything is implemented incorrectly.