Re: Sort By field in Dawn theme

How can I modify 'Sort By' fields in the Dawn theme?

xxxxxx
Excursionist
42 0 6

Hi there,

 

I would like to change some fields in the "Sort By" box:

 

Featured > delete

Best Selling > change text to "Featured"

Alphabetically A-Z > delete

Alphabetically Z-A > delete

Price, low to high > keep

Price, high to low > keep

Date, new to old > change text to "Newest added"

Date, old to new > change text to "Oldest added"

 

I managed to do this before, but since there is no way to search the text of the files, I can't find where I did it.

Reply 1 (1)
xxxxxx
Excursionist
42 0 6

It's the Dawn theme.

The original code which I edited was along these lines:

<option value="created-descending">Date, new to old</option>
<option value="manual">Featured</option>
<option value="best-selling" selected="selected">Best selling</option>
<option value="title-ascending">Alphabetically, A-Z</option>
<option value="title-descending">Alphabetically, Z-A</option>
<option value="price-ascending">Price, low to high</option>
<option value="price-descending">Price, high to low</option>
<option value="created-ascending">Date, old to new</option>

 However, since there is no way to search the code within the theme files, I cannot find it and I've also updated the theme since then.

 

I thought that Shopify was going to be easier to use than Wordpress.