Skip to content

Instantly share code, notes, and snippets.

@warnakey
Last active April 15, 2019 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save warnakey/dc900fd47b288a712936920ec9023dfd to your computer and use it in GitHub Desktop.
Save warnakey/dc900fd47b288a712936920ec9023dfd to your computer and use it in GitHub Desktop.
Website Schema Example with PotentialAction (SearchAction) in JSON-LD
<script type='application/ld+json'> {
"@context":"https://schema.org",
"@type":"WebSite",
"@id":"https://www.examplelaw.com/#website",
"url":"https://www.examplelaw.com/",
"name":"Example Law Firm",
"potentialAction": {
"@type":"SearchAction",
"target":"https://www.examplelaw.com/?s={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment