Created
December 15, 2017 13:23
-
-
Save jameswomack/d2c28945b07914da2465a25e46d9bf65 to your computer and use it in GitHub Desktop.
Example implementation of the Schema.org spec for Google/Bing to display a search bar to users to search our site from within Google
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
| <!-- Schema.org spec for Google/Bing to display a search bar to users to search our site from within Google --> | |
| <!-- See: https://developers.google.com/webmasters/structured-data/slsb-overview --> | |
| <script type="application/ld+json"> | |
| { | |
| "@context": "http://schema.org", | |
| "@type": "WebSite", | |
| "url": "http://www.showtimeanytime.com", | |
| "potentialAction": { | |
| "@type": "SearchAction", | |
| "target": "http://www.showtimeanytime.com/#search/{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