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...
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024