- Home {%- case t -%} {%- when 'page' -%}
- {{ page.title }} {%- when 'product' -%} {%- if collection.url -%}
- {{ collection.title | link_to: collection.url }} {%- endif -%}
- {{ product.title }} {%- when 'collection' and collection.handle -%} {%- if current_tags -%}
- {{ collection.title | link_to: collection.url }}
- {%- capture tag_url -%}{{ collection.url }}/{{ current_tags | join: "+"}}{%- endcapture -%} {{ current_tags | join: " + "}} {%- else -%}
- {{ collection.title }} {%- endif -%} {%- when 'blog' -%} {%- if current_tags -%}
- {{ blog.title | link_to: blog.url }}
- {%- capture tag_url -%}{{blog.url}}/tagged/{{ current_tags | join: "+" }}{%- endcapture -%} {{ current_tags | join: " + " }} {%- else -%}
- {{ blog.title }} {%- endif -%} {%- when 'article' -%}
- {{ blog.title | link_to: blog.url }}
- {{ article.title }} {%- else -%}
- {{ page_title }} {%- endcase -%}
Topic summary
A user is troubleshooting a Shopify breadcrumb navigation code that fails to display the last visited page correctly.
The Issue:
- The provided Liquid code snippet includes breadcrumb logic for various template types (page, product, blog, article)
- The code contains a syntax error:
{%- }appears instead of proper closing tags like{%- when 'blog' -%}for the blog section - This malformed code prevents proper breadcrumb rendering
Current Status:
- Another user requested the website link to investigate further
- The original poster agreed to share details via private message (“WA”)
- No solution has been provided yet; the discussion remains open and awaiting diagnosis
.breadcrumbs { margin: 0 0 2em; } .breadcrumbs__list { list-style-type: none; margin: 0; padding: 0; } .breadcrumbs__item { display: inline-block; } .breadcrumbs__item:not(:last-child):after { border-style: solid; border-width: .10em .10em 0 0; content: ''; display: inline-block; height: .20em; margin: 0 .20em; position: relative; transform: rotate(45deg); vertical-align: middle; width: .20em; } .breadcrumbs__link { text-decoration: underline; } .breadcrumbs__link[aria-current="page"] { color: inherit; font-weight: normal; text-decoration: none; } .breadcrumbs__link[aria-current="page"]:hover, .breadcrumbs__link[aria-current="page"]:focus { text-decoration: underline; } {%- unless template == 'index' or template == 'cart' or template == 'list-collections' or template == '404' -%} {%- assign t = template | split: '.' | first -%}
Hi @Ehtesham ,
Please send the website link, I will check it for you
ok
check WA please