Remove part of Sort By option on Collection page

Topic summary

A user wants to remove specific sorting options (\

Summarized with AI on November 3. AI used: claude-sonnet-4-5-20250929.

I want to delete part of the sort by option, like:

“Alphabetically, A-Z”
Alphabetically, Z-A"

“Featured” options.

But I can’t find where to do this in the code.

My website: https://www.atiqot.com/collections/living-room

2 Likes

Hi @Atiqot

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:
button#option-e68e054f-b2b8-49a5-bfeb-53c397dc8161, 
button#option-cde2edb0-a8ba-48b8-822c-5e06751841ee,
button#option-c920c52c-519b-48cb-bc70-616bb6d14a63 {
    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!

Hi @Atiqot

To complete your requests, please follow these steps:

  1. Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
  2. Paste the code provided into the Custom CSS section.
.collection-toolbar__button-container > button[aria-controls="sort-by-popover"] + facets-sort-popover x-listbox.popover__value-list > button:nth-child(3), .collection-toolbar__button-container > button[aria-controls="sort-by-popover"] + facets-sort-popover x-listbox.popover__value-list > button:nth-child(4) {
    display: none !important;
}

Here is the result: https://prnt.sc/dDbTGsE3rf9v

I hope this helps

Best,

Daisy

1 Like

Hello @Atiqot

Hello There,

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find Asset > theme.css and paste this at the bottom of the file:
button#option-69acc1de-b001-4a7b-8cb7-5b9e6481e8d7,button#option-61f396fd-bfa5-4187-9c7b-11117766e920, button#option-cab56ee5-b827-4e05-a57d-e47619302b6f {
display: none;
}

Perfect ! :raising_hands:

Thank you Daisy :heart:

Dear Daisy,

I noticed that it only works great on desktop but not on mobile. On mobile its include all sort options.

Maybe you have an idea how to update it on mobile as well?