A space to discuss online store customization, theme development, and Liquid templating.
Hello everbody,
I would like to edit the wording of the sorting options.
So I went to theme editor, [...], Edit default theme content.
Then I clicked on the Collections tab and scrolled to the Sorting section.
Here I am able to edit the wording for the different sorting options !
But ! The changes are not reflecting on the store !
Here is the code I am using to display sorting options :
{%- for sort_option in collection.sort_options -%}
<label>
<span>{{ sort_option.name }}</span>
<input
type="radio"
value="{{ sort_option.value }}"
name="sort_by"
{%- if collection.sort_by == sort_option.value -%}checked{%- endif -%}
>
</label>
{%- endfor -%}
I also tried
{{ sort_option.name | t }}
however that is giving errors that the translations are not defined.
Am I doing something wrong in the process of changing this wording ?
Should I write something different in code ?
Thanks for your help !
Thiago
Solved! Go to the solution
This is an accepted solution.
Hi @thiag,
If its just the wording and not how the sort is applied, you can do this via the Theme Language Editor without editing any code
Admin > Sales Channels > Themes > click the [...] next the theme you want to edit > Edit default theme content
In Filter items type sort - you should see Checkout & system Collections sorting
With options to update the default wording for Manual, Best Selling, Az, Za, Price ascending, Price descending, Date ascending, Date descending
Regards
You can do it easily via the Shopify search and discovery app. No code needed.
This is an accepted solution.
Hi @thiag,
If its just the wording and not how the sort is applied, you can do this via the Theme Language Editor without editing any code
Admin > Sales Channels > Themes > click the [...] next the theme you want to edit > Edit default theme content
In Filter items type sort - you should see Checkout & system Collections sorting
With options to update the default wording for Manual, Best Selling, Az, Za, Price ascending, Price descending, Date ascending, Date descending
Regards