Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
Struggling to add a rich snippet json file to the collection pages. Have the json file but can't work out where it goes?
Tried adding it as a custom html in a custom collection template didn't work.. Tried adding it in the template section of the edit code custom collection page.. didn't work and tried on product pages.
Page url for reference - https://spiritualshopuk.com/collections/tarot-cards
Code -
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "BreadcrumbList",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"name": "spiritualshopuk",
"item": "https://spiritualshopuk.com/"
},{
"@type": "ListItem",
"position": 2,
"name": "collections",
"item": "https://spiritualshopuk.com/collections/ "
},
{
"@type": "ListItem",
"position": 3,
"name": "tarot-cards",
"item": "https://spiritualshopuk.com/collections/tarot-cards/ "
}
]
}
</script>
<script type='application/ld+json'> {"@context":"https://schema.org","@graph":
[{"@type":"WebSite","@id":"https://spiritualshopuk.com/#website","url":"https://spiritualshopuk.com/","name":"spiritualshopuk","potentialAction":
{"@type":"SearchAction","target":"spiritualshopuk/search/{search_term_string}","query-input":"required name=search_term_string"}},
{"@type":"CollectionPage","@id":" https://spiritualshopuk.com/collections/tarot-cards/
/#webpage","url":" https://spiritualshopuk.com/collections/tarot-cards/","inLanguage": "en-UK", "name":"spiritualshopuk",
"isPartOf":{"@id":"https://spiritualshopuk.com/#website"},"description":" Tarot - Oracle Card Collection-Discover hidden truths and gain clarity with this endless source of divination and deepen your understanding with our collection of Tarot and Oracle Cards"}]}</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebPage",
"additionalType": [
"https://schema.org/Store",
"https://schema.org/Product",
"https://en.wikipedia.org/wiki/Tarot" ,
"https://en.wikipedia.org/wiki/Tarot_card_reading"
],
"name": "Tarot Card Collection",
"alternateName": "Tarot Oracle Card Collection ",
"@id": "https://spiritualshopuk.com/collections/tarot-cards/",
"url": "https://spiritualshopuk.com/collections/tarot-cards/",
"about": " Discover hidden truths and gain clarity with this endless source of divination and deepen your understanding with our collection of Tarot and Oracle Cards. " ,
"provider": "https://spiritualshopuk.com/ ",
"specialty":"Tarot Cards",
"image": {
"@type": "ImageObject",
"@id":"#image",
"contentUrl": " https://spiritualshopuk.com/cdn/shop/files/TC_2589_380x.jpg",
"url": " https://spiritualshopuk.com/cdn/shop/files/TC_2589_380x.jpg"
},
"sameAs": [
"https://twitter.com/Spiritualshopuk/",
" https://www.instagram.com/metaphysicalukshop/",
"https://www.pinterest.co.uk/metaphysicalshopuk/"
]
}
</script>
<script type="application/ld+json">{
"@context": "http://schema.org",
"@type": "ItemList",
"additionalType": [
"https://schema.org/Store",
"https://schema.org/Product",
"https://en.wikipedia.org/wiki/Tarot" ,
"https://en.wikipedia.org/wiki/Tarot_card_reading"
],
"url": "https://spiritualshopuk.com/collections/tarot-cards",
"name": "Tarot Cards",
"description": "Discover hidden truths and gain clarity with this endless source of divination and deepen your understanding with our collection of Tarot and Oracle Cards .",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Pagan Tarot Card Deck",
"image": "https://spiritualshopuk.com/cdn/shop/files/TC_2589_380x.jpg",
"url": "https://spiritualshopuk.com/collections/tarot-cards#1"
},
{
"@type": "ListItem",
"position": 2,
"name": "Black Cats Tarot Cards",
"image": "https://spiritualshopuk.com/cdn/shop/files/TC_2292_380x.jpg" ,
"url": "https://spiritualshopuk.com/collections/tarot-cards#2"
},
{
"@type": "ListItem",
"position": 3,
"name": "Archangel Michael Sword of Light Oracle Cards",
"image": "https://spiritualshopuk.com/cdn/shop/files/TC_9781401956714_380x.jpg?v=1687749759" ,
"url": "https://spiritualshopuk.com/collections/tarot-cards#3"
},
{
"@type": "ListItem",
"position": 4,
"name": "Oracle of the 7 Energies Oracle Cards",
"image": "https://spiritualshopuk.com/cdn/shop/products/oracle-of-the-7-energies-cards-800_380x.jpg?v=16730008...",
"url": "https://spiritualshopuk.com/collections/tarot-cards#4"
},
{
"@type": "ListItem",
"position": 5,
"name": "Angel Tarot Cards by Radleigh Valentine",
"image": "https://spiritualshopuk.com/cdn/shop/products/angel-tarot-cards-by-radleigh-valentine-616_380x.jpg?v..." ,
"url": "https://spiritualshopuk.com/collections/tarot-cards#5"
},
{
"@type": "ListItem",
"position": 6,
"name": "The Crystal Spirits Oracle Cards",
"image": "https://spiritualshopuk.com/cdn/shop/products/the-crystal-spirits-oracle-cards-tarot-852_380x.jpg",
"url": "https://spiritualshopuk.com/collections/tarot-cards#6"
},
{
"@type": "ListItem",
"position":7,
"name": "Moonology Manifestation Oracle Cards",
"image": "https://spiritualshopuk.com/cdn/shop/products/moonology-manifestation-oracle-cards-tarot-154_380x.jp...",
"url": "https://spiritualshopuk.com/collections/tarot-cards#7"
}
]
}</script>
Snippets section then collection-template.liquid is the right section for this code?
Also the code below is correct for shopify to only select that collection for this schema? keep getting errors. Also going to note cant see any schema in the current snippet.
{%- if collection.handle == "Tarot - Oracle Card Collection" -%}
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025