Sunday, November 5, 2017

How to Add Sitelinks Search Box on Search Results|stock rom go to rompure.com

How to Add Sitelinks Search Box on Search Results

To make content searches easier for your users, add just one markup declaration on your home page, telling the Google crawlers that users can search your site directly from Search results. Once we scan your home page and after users perform relevant navigational queries for your property, the search box appears in results. If you also have an app that corresponds to your website, add another line of markup so that your app users can search their apps directly from a mobile device following a navigational query.

The following illustration shows a navigational query for pinterest from the desktop, which then displays a Sitelinks search box above the sitelinks for Pinterest. The user can search "pizza" directly in Search results to open content in the Pinterest site.

Sitelinks Search Box

How do you set it up?

The Sitelinks search box setup involves the following general steps:

1. Install a working search engine on your web site.
Sitelinks search queries send the user to the search results page for your site, so you need a functioning search engine to power this feature.

2. Put the schema.org markup on your homepage.
Your home page is the only page that requires markup to specify a Sitelinks search box. The JSON-LD examples below show all the elements you need for a site-only search box.

3. Wait for Google Search algorithms to identify your site or app as a candidate for the new Sitelinks search box.

123456789101112<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>

4. Copy and paste the following code into a plain text document:
5. Add your website to the “url” section of the script.
6. Add your website search links to the ”target” section of the script.
7. Copy and paste your edited script into the head or body of your webpages.
8. Troubleshoot your script with Google’s Structured Data Testing Tool.

No comments:

Post a Comment