How to remove "sort by" option - Dawn theme Shopify
Before you start it
- Dawn theme version at this post is 6.0.2
- Duplicate your theme
- Online store > themes > Actions > Edit code (Code editor)
Quick Look 👀
Getting started ✏️
facets.liquid
1: Assign option name you want to hide (name connect with “ + “ )
1 | assign sort_by_hidden_options = 'Best selling + Price, low to high' | split: ' + ' |
2: Ctrl + F
Search keyword {%- for option in results.sort_options -%}
, insert this code after it
1 | {%- if sort_by_hidden_options contains option.name -%} |
Ps: there are multiple line need to add
3: Save