Remove some sorting options

Topic summary

Goal: Remove the “Sort by date” (New to Old / Old to New) options from collection sorting in the Shopify Expanse theme.

Proposed approaches:

  • Add custom code in theme.liquid above the tag; a screenshot was shared to show the result, but the exact code wasn’t included in the post.
  • Add CSS to the theme’s main CSS file (base.css/style.css/theme.css) to hide those options: targets option[value=“created-ascending”] and option[value=“created-descending”]. A screenshot demonstrated the outcome.

Outcome: The store owner confirmed the fix worked and was easy to follow, implying the CSS approach successfully hid the date-based sorting options in the UI.

Notes:

  • This solution hides the options on the storefront rather than removing them from backend configuration.
  • Images/screenshots were provided to show the final appearance after changes.

Status: Resolved; no further issues or open questions reported.

Summarized with AI on December 17. AI used: gpt-5.

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.