Remove / Edit SortBy options (District Theme)

Why is this so hard!?

I cannot seem to find a way to omit or remove certain sorting options such as “Old to new” , “New to old” , “Alphabetical” etc..

Current theme code:

<label class="collection-sort__label sr-only sm:not-sr-only normal-case p-0" for="SortBy-{{ section.id }}">
<span class="whitespace-nowrap">{{ 'products.facets.sort_by_label' | t }}</span>
</label>
{%- assign sort_by = results.sort_by | default: results.default_sort_by -%}
<select id="{{ id }}" name="sort_by"
class="collection-sort__select sm:text-sm"
aria-describedby="a11y-refresh-page-message">

{%- for option in results.sort_options -%}
<option value="{{ option.value | escape }}"{% if option.value == sort_by %} selected="selected"{% endif %}>{{ option.name | escape }}</option>
{%- endfor -%}
</select>

Please help!

2 Likes

Hi @roorats

If you like to change the Sort by Options.

Go to Online theme > Choose theme > Click the 3 dots > choose this one.

Made4uoRibe_0-1716587975911.png

for easier just search sort and this will come out

And change the options you like or if you like to remove I would need your store URL. Thanks!

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

Yes I see this, but how may I remove them? I cannot make any changes here.

2 Likes