Last active
April 15, 2019 17:23
-
-
Save warnakey/dc900fd47b288a712936920ec9023dfd to your computer and use it in GitHub Desktop.
Website Schema Example with PotentialAction (SearchAction) in JSON-LD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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