remove some of the sort options in Colorblock theme

remove some of the sort options in Colorblock theme

Janani
Tourist
11 0 2

I would like to remove some of the sort options - alphabetically and Date Sorts. My website is built in Colorblock theme version 1.0.0. I tried many code changes but its not working. 

Janani_0-1743417027891.png

 

Replies 7 (7)

Moeed
Shopify Partner
7334 1989 2424

Hey @Janani 

 

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


Janani
Tourist
11 0 2
Moeed
Shopify Partner
7334 1989 2424

Hey @Janani 

 

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-descending"], option[value="title-ascending"], option[value="created-ascending"], option[value="created-descending"] {
    display: none !important;
}
</style>

RESULT:

Moeed_0-1743425187066.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


Janani
Tourist
11 0 2

It worked! Thanks a ton!

Janani
Tourist
11 0 2

Hi @Moeed 

I just realized, when I open the website on iPhone, the sort changes are not visible. The sort changes are visible only when I open the website on my desktop or android phone. Is there any additional code required for iOS? 

Janani
Tourist
11 0 2

.......

Janani
Tourist
11 0 2

Hi @Moeed ! It did not work completely. On iphones, the entire sort option is still visible.