Remove some sorting options

Hi all

I’m currently using the expanse theme and would like to remove the sort by date (new to old and old to new) from the sorting options. I cannot work out how to do this at all. Any help would be much appreciated.

URL is https://severinfilms.co.uk/

Thanks

1 Like

Hey @SevFilms

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

1 Like

Hi @SevFilms

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.collection-filter__sort option[value="created-ascending"], 
.collection-filter__sort option[value="created-descending"] {
    display: none;
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

Thank you so much, this worked perfectly and was so easy to follow your instructions

Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.