Solved

How can I remove the Date, new to old option and Date, old to new from my collection sort options?

s1eys
Tourist
8 0 1

The theme we're using is Empire 11.1.0
Store - https://tibido.com.ua/
I would be grateful if there is a ready code to remove these two items

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
6404 1536 1907

This is an accepted solution.

Hi @s1eys 

Check this one.

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

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:

 

#product_grid_sort > option:nth-child(8), #product_grid_sort > option:nth-child(7) {
    display: none;
}

 

And Save. 

Result:

Made4uoRibe_0-1717090303614.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.

View solution in original post

Replies 4 (4)

filipmariani
New Member
4 0 0

Hi, nice to meet you. I am a Senior Shopify Developer with 6 years of experience.

 

To remove the "Date, new to old" and "Date, old to new" options from your collection sort options in the Empire 11.1.0 theme, you will need to modify the theme code.

Identify the sorting options for "Date, new to old" and "Date, old to new" and remove those lines of code.

 

You should remove the following lines:

 

<option value="date-desc">Date, new to old</option>
<option value="date-asc">Date, old to new</option>

 

Best Regards.

Filip Mariani
s1eys
Tourist
8 0 1

Can you please tell me in which folder I can find these lines?

Made4uo-Ribe
Shopify Partner
6404 1536 1907

This is an accepted solution.

Hi @s1eys 

Check this one.

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

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:

 

#product_grid_sort > option:nth-child(8), #product_grid_sort > option:nth-child(7) {
    display: none;
}

 

And Save. 

Result:

Made4uoRibe_0-1717090303614.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.