Have your say in Community Polls: What was/is your greatest motivation to start your own business?

How to delete Items from "Sory by" drop down

Solved

How to delete Items from "Sory by" drop down

CNDY_123
Excursionist
50 0 5

Hi

 

I want to delete few options from the "Sort by" drop down.

Not in any particular collection but every collection on the website.

 

Want to delete these marked items (marked red) from "Sory by".

 

Thanks in advance!

Screenshot 2024-11-05 131159.png

Accepted Solution (1)
Moeed
Shopify Partner
6322 1715 2067

This is an accepted solution.

Hey @CNDY_123 

 

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 </body> tag

<style>
option[value="title-ascending"], option[value="best-selling"], option[value="title-descending"], option[value="created-ascending"], option[value="created-descending"] {
    display: none !important;
}
</style>

RESULT:

Moeed_0-1730795740919.png

 

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

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 7 (7)

Moeed
Shopify Partner
6322 1715 2067

Hey @CNDY_123 

 

Share your Store URL and Password if enabled.

 

Best Regards,

Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


CNDY_123
Excursionist
50 0 5

Hi @Moeed 

 

Thanks for reply

url: cottoncandybabyshop.com

       Test@store123

Moeed
Shopify Partner
6322 1715 2067

This is an accepted solution.

Hey @CNDY_123 

 

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 </body> tag

<style>
option[value="title-ascending"], option[value="best-selling"], option[value="title-descending"], option[value="created-ascending"], option[value="created-descending"] {
    display: none !important;
}
</style>

RESULT:

Moeed_0-1730795740919.png

 

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

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


CNDY_123
Excursionist
50 0 5

Hi @Moeed 

 

Code worked perfectly! Thanks a lot!

Moeed
Shopify Partner
6322 1715 2067

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.

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


CNDY_123
Excursionist
50 0 5

Hi @Moeed 

 

Facing a small issue.. 

 

The code worked perfectly when im checking the website from my system(windows) and phone(android),... but when i tried from my friends Macbook and iphone, the sort by options still showing.. 

 

Have any idea why like that??

CNDY_123
Excursionist
50 0 5

Hi @Moeed 

Facing a small issue.. 

 

The code worked perfectly when im checking the website from my system(windows) and phone(android),... but when i tried from my friends Macbook and iphone, the sort by options still showing..