Gumf
February 27, 2023, 7:08pm
1
Hi
I am using the theme Dawn 2.0 and I am trying to hide the ‘sort by Price’ and ‘sort by Date’ fields from the collection page sort by dropdown menu. I have tried some solutions but can’t seem to get any to work.
Any help would be massively appreciated.
Thank you
Hi @Gumf ,
Could you please share URL and your store password? So that we can help you.
Thank you.
Hello @Gumf ,
You can follow these steps:
Go to Online Store->Theme->Edit code
Open your theme.liquid file, paste the below code before
I hope the above is useful to you.
Kind & Best regards,
GemPages Support Team
Hello @Gumf ,
Greetings from the Store Watchers Support Team! Happy to help you today.
Go to Online Store → Actions → Edit code. Then find theme.liquid.
In the search field, type facets.liquid. Then open the file. In line 319, please update the select tag with the below code.
Please check the screenshot below for your reference.
Let me know if need further assistance
Regards,
Store Watchers Support Team
Gumf
February 28, 2023, 8:49am
5
This worked perfectly, thank you so much!
Hello,
This coding works for me to get rid of things in the right place, but what text do I use to rid of these in the sort by drop down menu? (I want to keep: price, low to high and price, high to low)
-featured
-best selling
-alphabetically, A-Z
-alphabetically, Z-A
-date, old to new
-date, new to old
Does anyone know the excactly field id of the “best selling” option?
Thanks a lot!
NG5
September 2, 2024, 8:41am
8
Did you end up finding the id for the remaining fields? would be useful to know what they are, thanks.
NG5
September 2, 2024, 8:54am
9
.facet-filters__field .select__select option[value="best-selling"],
.facet-filters__field .select__select option[value="created-ascending"],
.facet-filters__field .select__select option[value="created-descending"]
display: none;
}