Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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
Solved! Go to the solution
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:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
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.
Can you please tell me in which folder I can find these lines?
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:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
It worked, thank you very much!
Perhaps you can help me with one of the problems? I would be very grateful.
https://community.shopify.com/c/technical-q-a/how-to-translate-sorting-values-by-price-from-and-to-i...
https://community.shopify.com/c/technical-q-a/how-do-i-edit-the-sorting-of-collections-alphabeticall...
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024