• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Skip to footer navigation
  • Speaking
  • News
  • About
Kherk Roldan SEO logo

Ecommerce SEO - Shopify SEO, Lazada SEO, Shopee SEO

  • Home
  • SEO Audit
  • Case Study
  • Courses
  • Podcast
  • Services
    • Free SEO Audit
    • SEO Services
    • Ecommerce Web Design
    • Local SEO
    • White Label SEO
    • Guest Posting
    • SEO Consulting
    • SEO Copywriting
  • Contact

Breadcrumb

  1. From your Shopify admin, go to Online Store > Themes.
  2. Find the theme you want to edit, and then click Actions > Edit code.
  3. Create a new snippet for the breadcrumbs code:
    • Click the Snippets folder, then click Add a new snippet.
    • Name the snippet breadcrumbs. Make sure that the name is not capitalized, or your theme won’t be able to find the new file.
    • Click Create snippet:A modal in the theme editor that appears when you click Add a new snippet.

4. Copy the following Liquid code and paste it into the code editor for the breadcrumbs.liquid snippet:

{% unless template == 'index' or template == 'cart' or template == 'list-collections' %}
<nav class="breadcrumb" role="navigation" aria-label="breadcrumbs">
  <a href="/" title="Home">Home</a>
  {% if template contains 'page' %}
    <span aria-hidden="true">&rsaquo;</span>
    <span>{{ page.title }}</span>
  {% elsif template contains 'product' %}
    {% if collection.url %}
      <span aria-hidden="true">&rsaquo;</span>
      {{ collection.title | link_to: collection.url }}
    {% endif %}
    <span aria-hidden="true">&rsaquo;</span>
    <span>{{ product.title }}</span>
  {% elsif template contains 'collection' and collection.handle %}
    <span aria-hidden="true">&rsaquo;</span>
    {% if current_tags %}
      {% capture url %}/collections/{{ collection.handle }}{% endcapture %}
      {{ collection.title | link_to: url }}
      <span aria-hidden="true">&rsaquo;</span>
      <span>{{ current_tags | join: " + " }}</span>
    {% else %}
      <span>{{ collection.title }}</span>
    {% endif %}
  {% elsif template == 'blog' %}
    <span aria-hidden="true">&rsaquo;</span>
    {% if current_tags %}
      {{ blog.title | link_to: blog.url }}
      <span aria-hidden="true">&rsaquo;</span>
      <span>{{ current_tags | join: " + " }}</span>
    {% else %}
    <span>{{ blog.title }}</span>
    {% endif %}
  {% elsif template == 'article' %}
    <span aria-hidden="true">&rsaquo;</span>
    {{ blog.title | link_to: blog.url }}
    <span aria-hidden="true">&rsaquo;</span>
    <span>{{ article.title }}</span>
  {% else %}
   <span aria-hidden="true">&rsaquo;</span>
   <span>{{ page_title }}</span>
  {% endif %}
</nav>
{% endunless %}
  • 5. Click Save to confirm your changes to breadcrumbs.liquid.
  • 6. Click theme.liquid to open it in the code editor.
  • 7. Paste the following code in theme.liquid wherever you want your breadcrumbs to appear:
{% render 'breadcrumbs' %}
  • 8. Click Save to confirm your changes to theme.liquid.

Primary Sidebar

seo profile image

Kherk Roldan

I love what i do, and I'm damn good about it

  • social media icon
  • social media icon
  • social media icon

Signup for FREE Tips

Get a wide range of tips and advice by signing up for my newsletter.

FREE SEO Audit

Recent Posts

  • Dropshipping in the Philippines: Does it really work? February 18, 2021
  • Ecommerce SEO Guide: How to generate 10k + Sales a month WITHOUT Paid Ads October 15, 2020
  • A microscopic look on High Quality Backlinks October 2, 2020
  • Monthly SEO Pricing in the Philippines August 22, 2020
  • How long does it take to see SEO results? August 10, 2020

Online Courses

FREE Basic SEO Course
15 Modules 5 Hours PHP 0
Ecommerce SEO Course
19 Modules 10 Hours PHP15,000
SEO Masterclass
15 Modules 15 Hours PHP 15,000
SEO Masterclass
20+ Modules 12 Hours PHP10,000

Footer

Useful Links

  • About
  • Podcast
  • Contact Me
  • Privacy Policy
  • Terms and Conditions

Recent News

Ecommerce SEO Guide: How to generate 10k + Sales a month WITHOUT Paid Ads

October 15, 2020 By Kherk Roldan Leave a Comment

Dropshipping in the Philippines: Does it really work?

February 18, 2021 By Kherk Roldan Leave a Comment

A microscopic look on High Quality Backlinks

October 2, 2020 By Kherk Roldan Leave a Comment

Monthly SEO Pricing in the Philippines

August 22, 2020 By Kherk Roldan Leave a Comment

Best Selling Courses

  • FREE SEO Course
  • Ecommerce SEO Course
  • SEO Masterclass
  • AdWords Course

Copyright © 2021 · Kherk Roldan SEO

  • Home
  • About
  • SEO Audit
  • Courses
  • Podcast
  • Services
  • News
  • Contact