# パンくずリストについて

**URL:** <https://community.shopify.com/t/topic/170492>\
**Category:** 技術的なQ＆A\
**Created:** [November 24, 2022, 2:41am UTC](https://community.shopify.com/t/topic/170492 "2022-11-24T02:41:43Z")\
**Posts on this page:** 2\
**Page:** 1

## AI-generated summary

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

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

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

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

<div class="post-metadata">

**Author:** ![Anonymous\_f1c80349c47df339b993e9778b5d5eb9](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@Anonymous\_f1c80349c47df339b993e9778b5d5eb9](https://community.shopify.com/u/Anonymous_f1c80349c47df339b993e9778b5d5eb9)\
**Post date:** [November 24, 2022, 2:41am UTC](https://community.shopify.com/t/topic/170492/1 "2022-11-24T02:41:43Z")

</div>

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 %}

---

<div class="post-metadata">

**Author:** ![Anonymous\_44fbe07fc59d9ccaacd70575fd5a5155](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/anonymous_44fbe07fc59d9ccaacd70575fd5a5155/32/194200_2.png) [@Anonymous\_44fbe07fc59d9ccaacd70575fd5a5155](https://community.shopify.com/u/Anonymous_44fbe07fc59d9ccaacd70575fd5a5155)\
**Post date:** [November 25, 2022, 8:57am UTC](https://community.shopify.com/t/topic/170492/2 "2022-11-25T08:57:56Z")

</div>

AlleyGiftさま

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

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

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

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

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

[https://community.shopify.com/post/1728890](https://community.shopify.com/post/1728890)

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

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

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

フルバランス 渡邉
