【Shopify Tips】 コレクションページの並び替え(ソート)項目を非表示にする方法

How to hide sort options in Shopify collections | Target theme: Dawn

小笠原 京平

"RuffRuff 予約販売" supports the reduction of opportunity losses that occur when products are out of stock, new products are not on sale, or are on backorder.
It's incredibly easy to create pre-orders on your Shopify store, allowing you to register an unlimited number of pre-order products and accept unlimited pre-orders. You can also restrict people from ordering pre-order items and regular items at the same time, or send notifications when the item will be back in stock if it is not yet determined.
There are many unique features that are not found in other pre-order sales apps, such as the "Pay Later" feature that allows you to collect payment before the product is shipped.


Shopify collection pages play an important role in effectively displaying your products and improving your customers' shopping experience. However, sometimes too many or unnecessary sort options are displayed, which can impair the user experience.

This article provides step-by-step instructions on how to hide specific sort options on your Shopify collection page. This allows you to create collection pages that are simpler and easier to use.

Prerequisites

Target theme

The content of this article is based on Dawn 8.0.0.

Target page

Collection page

Goal

Hide unnecessary items from the sort options

This time, I would like to hide the sort options "Alphabetically, A-Z" and "Alphabetically, Z-A".

Output

By using the method introduced in this article, you will get the following output.

Before hiding

Sort options before hiding | Shopify collection page

After hiding

Sort options after hiding | Shopify collection page


How to hide sort options

There are two steps to hide them.

  1. Identify the value of the sort option you want to hide
  2. Customize the source code

I will explain each step

1 Identify the value of the sort option you want to hide

Here are the values for each Shopify sort option.

  • Featured → manual
  • Best selling → best-selling
  • Alphabetically, A-Z → title-ascending
  • Alphabetically, Z-A → title-descending
  • Price, low to high → price-ascending
  • Price, high to low → price-descending
  • Date, old to new → created-ascending
  • Date, new to old → created-descending

The sort options I want to hide this time are "Alphabetically, A-Z" and "Alphabetically, Z-A", so the values are title-ascending and title-descending.

2 Customize the source code

2-0. Sample code

Sample code 1 (when there is one sort option you want to hide)

Sample code 2 (when there are multiple sort options you want to hide)

2-1. Open the code editing screen

Shopify admin > Online Store > Click “Edit code” for the target theme

2-2. Edit the main-collection-product-grid.liquid file

  1. Search for “collection” from the search window at the top left of the code editing screen and open “main-collection-product-grid.liquid”
  2. Search for “sort_options” in “main-collection-product-grid.liquid” and identify the part to edit.
  3. Edit the source code as shown in the attached image
    *This time, we want to hide two items, so we will use sample code 2.
Edited part of main-collection-product-grid.liquid


2-4. Edit the facets.liquid file

  1. Search for “facets” from the search window at the top left of the code editing screen and open “facets.liquid”
  2. Search for “sort_options” in “facets.liquid” and identify the part to edit.
    *There are multiple applicable locations in "facets.liquid", so please change them all.
  3. Edit the source code as shown in the attached image
    *This time, we want to hide two items, so we will use sample code 2.
Edited part in “facets.liquid”


Finally 

By customizing the sort options on the collection page, you can achieve the optimal display that matches the characteristics of your store. Using the method introduced in this article, you can hide unnecessary sort options and display only the options that are important to your customers.

However, depending on the theme version and customization status, the location and writing style of the code may differ slightly. Please carefully review your theme's source code and make edits where appropriate.

The blog article below introduces several ways to customize collections in addition to hiding sort options. Please use it as a reference.

Shopify Collection Guide: Complete explanation of registration, customization methods, and recommended apps

👆️目次はShopifyアプリ「RuffRuff 目次作成」を利用

👆️Table of contents by the Shopify app RuffRuff Table of Contents

Back to blog
  • Shopifyで使える決済方法一覧|手数料・導入サービス・選び方

    [Complete Guide] A Roundup of Payment Methods A...

    Tsunライターチーム

    This article gives a detailed explanation of the many payment methods available on Shopify and their respective payment processing fees and transaction fees. We also introduce handy Shopify apps that...

    [Complete Guide] A Roundup of Payment Methods A...

    Tsunライターチーム

    This article gives a detailed explanation of the many payment methods available on Shopify and their respective payment processing fees and transaction fees. We also introduce handy Shopify apps that...

  • GMOイプシロンの手数料・決済方法・入金サイクル|Shopifyの条件も解説

    GMO Epsilon Fees, Payment Methods, and Payout C...

    Tsun ライターチーム

    GMO Epsilon payment methods and fees, organized by contract type. Covers Shopify-specific terms, payouts, authorization and capture deadlines, refunds, and cancellation. Also introduces ways to use apps to control which...

    GMO Epsilon Fees, Payment Methods, and Payout C...

    Tsun ライターチーム

    GMO Epsilon payment methods and fees, organized by contract type. Covers Shopify-specific terms, payouts, authorization and capture deadlines, refunds, and cancellation. Also introduces ways to use apps to control which...

  • Shopify向けSBペイメントサービス|対応決済・手数料・導入時の注意点

    SB Payment Service for Shopify: Supported Payme...

    Tsun ライターチーム

    This article organizes the payment methods and pricing available with SBPS for Shopify. Compare cost estimates that include fixed costs, authentication fees, and Shopify fees, along with capture deadlines and...

    SB Payment Service for Shopify: Supported Payme...

    Tsun ライターチーム

    This article organizes the payment methods and pricing available with SBPS for Shopify. Compare cost estimates that include fixed costs, authentication fees, and Shopify fees, along with capture deadlines and...

  • KOMOJUとShopifyの連携|決済方法・手数料・オーソリ期限

    Integrating KOMOJU with Shopify: Payment Method...

    Tsunライターチーム

    This guide lists the KOMOJU payment methods available on Shopify and their fees. It covers rates for physical goods and digital content, additional Shopify fees, setup steps, authorization periods, payouts,...

    Integrating KOMOJU with Shopify: Payment Method...

    Tsunライターチーム

    This guide lists the KOMOJU payment methods available on Shopify and their fees. It covers rates for physical goods and digital content, additional Shopify fees, setup steps, authorization periods, payouts,...

  • Shopifyのセキュリティ対策|決済・アプリ要件・バグバウンティ

    Shopify Security: Payments, App Requirements, a...

    Tsun ライターチーム

    For businesses considering Shopify, this article explains security safeguards for communications, customer information, payments, and apps, along with third-party assessments. Review the scope of protection, compensation requirements, operational preparations, and...

    Shopify Security: Payments, App Requirements, a...

    Tsun ライターチーム

    For businesses considering Shopify, this article explains security safeguards for communications, customer information, payments, and apps, along with third-party assessments. Review the scope of protection, compensation requirements, operational preparations, and...

  • Shopifyサーバーの費用・稼働率・障害時の対処法

    Shopify server costs, uptime, and how to respon...

    Tsun ライターチーム

    Shopify web hosting is included in the plan fee. This article organizes costs and the scope of management, the difference between official uptime figures and contractual guarantees, the checks to...

    Shopify server costs, uptime, and how to respon...

    Tsun ライターチーム

    Shopify web hosting is included in the plan fee. This article organizes costs and the scope of management, the difference between official uptime figures and contractual guarantees, the checks to...

1 of 6
  • AI仮想顧客の改善ツール「SimGym」を使ったら売上はどうなった?実行から3か月後までの記録

    What Happened to Sales After Using SimGym, an A...

    テキサス・アユミ

    A record of trying SimGym on the miso specialty store ドットミソ, from checking the proposals through carrying out changes to the look-back three months later. It covers how the order...

    What Happened to Sales After Using SimGym, an A...

    テキサス・アユミ

    A record of trying SimGym on the miso specialty store ドットミソ, from checking the proposals through carrying out changes to the look-back three months later. It covers how the order...

  • 【ストアインタビュー後編】やりながら育てるShopify。「野菜をMOTTO」の試行錯誤:モンマルシェ株式会社 河野雄士さん

    [Store Interview, Part 2] Building and Growing ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." An in-depth look at our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its...

    [Store Interview, Part 2] Building and Growing ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." An in-depth look at our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its...

  • 【ストアインタビュー前編】 ECが主戦場でも、ECが目的ではない。「野菜をMOTTO」が貫くEC戦略:モンマルシェ株式会社 河野雄士さん

    [Store Interview, Part 1] Even When E-Commerce ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." Part 1 of our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its e-commerce...

    [Store Interview, Part 1] Even When E-Commerce ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." Part 1 of our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its e-commerce...

1 of 3
  • Our Editorial Process

    For readers new to e-commerce and Shopify, we write our articles with care to explain difficult commerce and marketing terms, along with how everything works from building a store through to selling, as “gently,” “clearly,” and “accurately” as we can.

    Learn more 
  • About the information on this site

    The information published here is based on Tsun Inc.’s own experience and research. While we make every effort to publish information that is as “current” and “accurate” as possible, we cannot fully guarantee its contents. Tsun Inc. accepts no liability whatsoever for any damages arising from this site. If you find an error in the information published here, we would be grateful if you would contact Tsun Inc.