Created
November 1, 2014 16:27
-
-
Save jackgregory/be8d8e8409514bc6b3c2 to your computer and use it in GitHub Desktop.
Search in Sitelinks Shopify Snippet
This file contains 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
{% comment %} | |
Google sitelinks search box, people can reach your content more quickly from search results. | |
More information on sitelinks: | |
https://developers.google.com/webmasters/richsnippets/sitelinkssearch | |
{% endcomment %} | |
<script type="application/ld+json"> | |
{ | |
"@context": "http://schema.org", | |
"@type": "WebSite", | |
"url": "{{ shop.url }}", | |
"potentialAction": { | |
"@type": "SearchAction", | |
"target": "{{ shop.url }}/search?type=product&q={search_term}", | |
"query-input": "required name=search_term" | |
} | |
}</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment