How can I edit the default sort by options in my collection?

Hi,

I’m trying to remove some sort by options (as image).

While editing the code, I found it’s a “collection.default_sort_by” (as image).

Don’t know where can I edit the setting of “collection.default_sort_by”, so that I can remove the options “featured, A-Z, Z-A”.

Please help me to solve this problem. Thanks!

Hi @edith13 ,

Please add code here:

Code:

{% if option.value != 'manual' and option.value != 'title-ascending' and option.value != 'title-descending' %}

{% endif %}

Hope it helps!