Create your website Search Box on the Google search page.

Create your website Search Box on the Google search page.

SEO |Create your website Searchbox on Google search page using Google Structured Markup Data in a simple below steps with demo code.

Step 1: Add below markup JSON code into your website in the head tag.

<script type="application/ld+json">
{
  "@context ":" https: //schema.org",
  "@type":"WebSite",
  "url":"https://www.example.com/",
  "potentialAction": {
    "@type":"SearchAction",
    "target":"https://www.example.com/search?q={search_term}",
    "query-input":"required name=search_term"
  }
}
</script>

Before deploy validate your JSON code with Google Structured Data testing tool click here.

Step 2: Google Structured Data testing tool preview shown as below.

Any query? Please share your thoughts in the comments below. Glad to help you!
Thanks!

Was this page helpful? Do not forget to share this post!

Leave a Reply

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