# コレクションページの「並び替え」から不要な項目を削除したい

**URL:** <https://community.shopify.com/t/topic/191073>\
**Category:** 技術的なQ＆A\
**Created:** [February 11, 2023, 9:10am UTC](https://community.shopify.com/t/topic/191073 "2023-02-11T09:10:06Z")\
**Posts on this page:** 2\
**Page:** 1

## AI-generated summary

Prestigeテーマを使用しているユーザーが、コレクションページの「並び替え」セレクターから不要な項目（特に「ベストセラー」）を削除する方法を質問しています。

**提案された解決策:**
- 参考リンクとして、並び替えオプションのカスタマイズ方法を説明する記事が共有されました
- `collection-template.liquid`ファイル内のコードを修正する具体的な方法が提示されています

**コード変更の内容:**
既存のコード:
```
{% for option in collection.sort_options %}
  {% if option.value != 'best-selling' %}
  {% endif %}
{% endfor %}
```

推奨される変更:
```
{% for option in collection.sort_options %}
{% endfor %}
```

特定の並び替えオプションを除外する条件文を削除または調整することで、表示される項目をカスタマイズできます。

<div class="post-metadata">

**Author:** ![minorimitani](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@minorimitani](https://community.shopify.com/u/minorimitani)\
**Post date:** [February 11, 2023, 9:10am UTC](https://community.shopify.com/t/topic/191073/1 "2023-02-11T09:10:06Z")

</div>

prestiageを使用しているのですが、コレクションページの「並び替え」からベストセラーの項目を削除したいのですが方法がわからないです。

---

<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:** [February 14, 2023, 8:53am UTC](https://community.shopify.com/t/topic/191073/2 "2023-02-14T08:53:32Z")

</div>

Minorimitani 様

お世話になっております。

こちらのサイトが参考になるのではと思いましたので、ご参考までに送付いたします。

[https://yagisoftware.com/articles/how-to-customize-sorting-options-on-collection-page.html](https://yagisoftware.com/articles/how-to-customize-sorting-options-on-collection-page.html)

お目通しいただけますと幸いです。

また、コードとしては、セクション内のcollection-template.liquid内に以下のような記述があると思いますので、

```markup
{%- for option in collection.sort_options -%}
　　　　
{%- endfor -%}

```

以下の形に書き換えてみてください。

```markup
{%- for option in collection.sort_options -%}
　　{%- if option.value != 'best-selling' -%}
　　　　
　　{%- endif -%}
{%- endfor -%}

```
