パンくずリストについて

Topic summary

Dawnテーマでパンくずリストの実装方法についての質問です。

質問内容:

  • パンくずリストの配置場所
  • ネットで見つけたコードをそのままコピペして良いか

回答内容:

  • theme.liquidの<main>タグの直下に配置すれば表示される
  • 特定のページのみに表示したい場合は、別の関連スレッドを参照することを推奨
  • 参考リンクが提供されている

状況:
質問者が提示したコードには一部文字化けや逆順のテキストが含まれており、正確なコードの検証が必要な可能性があります。基本的な実装方法は提示されましたが、具体的なコードの動作確認については未解決です。

Summarized with AI on November 25. AI used: claude-sonnet-4-5-20250929.

Dawnのテーマを使用しています。

パンくずリストはどこに配置すれば良いですか。

また、ネットで参照した以下のコードをそのままコピペすれば良いでしょうか?

{% unless template == ‘index’ or template == ‘cart’ or template == ‘list-collections’ %}

Home {% if template contains 'page' %} {{ page.title }} {% elsif template contains 'product' %} {% if collection.url %} {{ collection.title | link_to: collection.url }} {% endif %} {{ product.title }} {% elsif template contains 'collection' and collection.handle %} {% if current_tags %} {% capture url %}/collections/{{ collection.handle }}{% endcapture %} {{ collection.title | link_to: url }} {{ current_tags | join: " + " }} {% else %} {{ collection.title }} {% endif %} {% elsif template == 'blog' %} {% if current_tags %} {{ blog.title | link_to: blog.url }} {{ current_tags | join: " + " }} {% else %} {{ blog.title }} {% endif %} {% elsif template == 'article' %} {{ blog.title | link_to: blog.url }} {{ article.title }} {% else %} {{ page_title }} {% endif %} {% endunless %}

AlleyGiftさま

はじめまして、フルバランスの渡邉です。

ご質問を確認いたしました。

パンくずリストはデフォルトで付いていてほしいですよね。

theme.liquidのmainタグ(<main ~~~>)の下に配置いただければ表示されるかと存じます。

もし特定のページだけに表示されたい場合は、以下スレッドをご参照ください。

https://community.shopify.com/c/%E6%8A%80%E8%A1%93%E7%9A%84%E3%81%AAq-a/%E3%83%91%E3%83%B3%E3%81%8F%E3%81%9A%E3%83%AA%E3%82%B9%E3%83%88%E4%BD%9C%E6%88%90-%E3%82%B3%E3%83%BC%E3%83%89%E3%81%AE%E8%A8%AD%E5%AE%9A%E7%AE%87%E6%89%80%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6/m-p/1728890

ご参考になりましたら幸いです。

私たちの励みにもなりますので、
お役に立てていればBest Answerボタンを押して頂ければ嬉しいです。

分からない点があれば、またいつでもご連絡ください。

フルバランス 渡邉