Having this error message on my search console.
I am using the craft theme. Is it because these are named differently?
“name”: “{{ collection.title }}”,
“item”: “{{ collection.url }}”
{% unless template == 'index' or template == 'cart' or template == 'list-collections' %}
<nav class="breadcrumb" role="navigation" aria-label="breadcrumbs">
<div class="page-width">
<a href="/" title="Home">Home</a>
{% assign position = 1 %}
{% capture breadcrumb_json %}"@type": "ListItem", "position": {{ position }}, "name": "Home", "item": "{{ shop.url }}"{% endcapture %}
{% assign breadcrumb_list = breadcrumb_json | prepend: "[" | append: "," %}
{% if template contains 'page' %}
{% assign position = position | plus: 1 %}
<span aria-hidden="true">›</span>
<span>{{ page.title }}</span>
{% assign breadcrumb_list = breadcrumb_list | append: "{\"@type\":\"ListItem\",\"position\":" | append: position | append: ",\"name\":\"" | append: page.title | append: "\",\"item\":\"" | append: canonical_url | append: "\"}," %}
{% elsif template contains 'product' %}
{% assign position = position | plus: 1 %}
{% if product.collections.size > 0 %}
{% assign collection = product.collections.first %}
<span aria-hidden="true">›</span>
{{ collection.title | link_to: collection.url }}
{% assign breadcrumb_list = breadcrumb_list | append: "{\"@type\":\"ListItem\",\"position\":" | append: position | append: ",\"name\":\"" | append: collection.title | append: "\",\"item\":\"" | append: collection.url | append: "\"}," %}
{% assign position = position | plus: 1 %}
{% endif %}
<span aria-hidden="true">›</span>
<span>{{ product.title }}</span>
{% assign breadcrumb_list = breadcrumb_list | append: "{\"@type\":\"ListItem\",\"position\":" | append: position | append: ",\"name\":\"" | append: product.title | append: "\",\"item\":\"" | append: canonical_url | append: "\"}" %}
{% elsif template contains 'collection' %}
{% assign position = position | plus: 1 %}
<span aria-hidden="true">›</span>
<span>{{ collection.title }}</span>
{% assign breadcrumb_list = breadcrumb_list | append: "{\"@type\":\"ListItem\",\"position\":" | append: position | append: ",\"name\":\"" | append: collection.title | append: "\",\"item\":\"" | append: canonical_url | append: "\"}" %}
{% elsif template == 'blog' %}
{% assign position = position | plus: 1 %}
<span aria-hidden="true">›</span>
{{ blog.title | link_to: blog.url }}
{% assign breadcrumb_list = breadcrumb_list | append: "{\"@type\":\"ListItem\",\"position\":" | append: position | append: ",\"name\":\"" | append: blog.title | append: "\",\"item\":\"" | append: blog.url | append: "\"}," %}
{% if current_tags %}
{% assign position = position | plus: 1 %}
<span aria-hidden="true">›</span>
<span>{{ current_tags | join: ' + ' }}</span>
{% assign breadcrumb_list = breadcrumb_list | append: "{\"@type\":\"ListItem\",\"position\":" | append: position | append: ",\"name\":\"" | append: current_tags | join: ' + ' | append: "\",\"item\":\"" | append: canonical_url | append: "\"}" %}
{% endif %}
{% elsif template == 'article' %}
{% assign position = position | plus: 1 %}
<span aria-hidden="true">›</span>
{{ blog.title | link_to: blog.url }}
{% assign breadcrumb_list = breadcrumb_list | append: "{\"@type\":\"ListItem\",\"position\":" | append: position | append: ",\"name\":\"" | append: blog.title | append: "\",\"item\":\"" | append: blog.url | append: "\"}" %}
{% assign position = position | plus: 1 %}
<span aria-hidden="true">›</span>
<span>{{ article.title }}</span>
{% assign breadcrumb_list = breadcrumb_list | append: "{\"@type\":\"ListItem\",\"position\":" | append: position | append: ",\"name\":\"" | append: article.title | append: "\",\"item\":\"" | append: canonical_url | append: "\"}" %}
{% else %}
{% assign position = position | plus: 1 %}
<span aria-hidden="true">›</span>
<span>{{ page_title }}</span>
{% assign breadcrumb_list = breadcrumb_list | append: "{\"@type\":\"ListItem\",\"position\":" | append: position | append: ",\"name\":\"" | append: page_title | append: "\",\"item\":\"" | append: canonical_url | append: "\"}" %}
{% endif %}
<!-- Structured Data for Breadcrumbs -->
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "{{ shop.url }}"
},
{%- if template == 'collection' -%}
{
"@type": "ListItem",
"position": 2,
"name": "{{ collection.title }}",
"item": "{{ collection.url }}"
}
{%- elsif template == 'product' -%}
{
"@type": "ListItem",
"position": 2,
"name": "{{ product.title }}",
"item": "{{ product.url }}"
}
{%- else -%}
{
"@type": "ListItem",
"position": 2,
"name": "{{ page.title }}",
"item": "{{ shop.url }}{{ request.path }}"
}
{%- endif -%}
]
}
</script>
</div>
</nav>
<style>
.breadcrumb {
font-family: 'Georgia', serif;
font-size: 0.8125rem;
background-color: white;
padding: 10px;
}
.breadcrumb a {
color: #40E0D0;
text-decoration: none;
}
.breadcrumb a:hover {
text-decoration: underline;
}
</style>
{% endunless %}

