Created
October 30, 2014 20:15
-
-
Save acodesmith/e3393b190bbafb23518a to your computer and use it in GitHub Desktop.
Shopify Search Results - Display different results based on search item
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
<!-- PAGE RESULT --> | |
{% if item.url contains '/pages/' %} | |
<h1>PAGE</h1> | |
{% endif %} | |
<!-- BLOG RESULT --> | |
{% if item.url contains '/blogs/' %} | |
<h1>BLOG</h1> | |
{% endif %} | |
<!-- PRODUCT RESULT --> | |
{% if item.url contains '/products/' %} | |
<h1>PRODUCT</h1> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment