We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Re: Remove part of Sort By option on Collection page

Solved

Remove part of Sort By option on Collection page

Atiqot
Tourist
10 1 4

I want to delete part of the sort by option, like:

"Alphabetically, A-Z"
Alphabetically, Z-A"

"Featured" options.

But I can't find where to do this in the code.

My website: https://www.atiqot.com/collections/living-room

Accepted Solution (1)

DaisyVo
Shopify Partner
4469 501 598

This is an accepted solution.

Hi @Atiqot  

 

To complete your requests, please follow these steps:
  1. Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
  2. Paste the code provided into the Custom CSS section.

 

.collection-toolbar__button-container > button[aria-controls="sort-by-popover"] + facets-sort-popover x-listbox.popover__value-list > button:nth-child(3), .collection-toolbar__button-container > button[aria-controls="sort-by-popover"] + facets-sort-popover x-listbox.popover__value-list > button:nth-child(4) {
    display: none !important;
}

 

Here is the result: https://prnt.sc/dDbTGsE3rf9v
 
I hope this helps
 
Best,
 
Daisy
Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

View solution in original post

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
10211 2427 3079

Hi @Atiqot 

Try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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:

 

button#option-e68e054f-b2b8-49a5-bfeb-53c397dc8161, 
button#option-cde2edb0-a8ba-48b8-822c-5e06751841ee,
button#option-c920c52c-519b-48cb-bc70-616bb6d14a63 {
    display: none;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1732487804997.png

     

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

DaisyVo
Shopify Partner
4469 501 598

This is an accepted solution.

Hi @Atiqot  

 

To complete your requests, please follow these steps:
  1. Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
  2. Paste the code provided into the Custom CSS section.

 

.collection-toolbar__button-container > button[aria-controls="sort-by-popover"] + facets-sort-popover x-listbox.popover__value-list > button:nth-child(3), .collection-toolbar__button-container > button[aria-controls="sort-by-popover"] + facets-sort-popover x-listbox.popover__value-list > button:nth-child(4) {
    display: none !important;
}

 

Here is the result: https://prnt.sc/dDbTGsE3rf9v
 
I hope this helps
 
Best,
 
Daisy
Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
Atiqot
Tourist
10 1 4

Perfect ! 🙌

Thank you Daisy ❤️

Atiqot
Tourist
10 1 4

Dear Daisy, 

I noticed that it only works great on desktop but not on mobile. On mobile its include all sort options.

Maybe you have an idea how to update it on mobile as well?

ZestardTech
Shopify Partner
6161 1100 1479

Hello @Atiqot 

Hello There,

 

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > theme.css and paste this at the bottom of the file:

 

button#option-69acc1de-b001-4a7b-8cb7-5b9e6481e8d7,button#option-61f396fd-bfa5-4187-9c7b-11117766e920, button#option-cab56ee5-b827-4e05-a57d-e47619302b6f {
display: none;
}

 

ZestardTech_0-1732513922779.png

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing