Happening now! Shopify Community AMA: Building a Marketing Budget with 2H Media | Ask your marketing budget questions now!

Prestige Theme: Remove Sort by options and customize Filter options

Prestige Theme: Remove Sort by options and customize Filter options

chrissy8329
Tourist
3 0 1

Hello there,

 

I'd like to remove the following "Sort by" option within my prestige theme:

  • featured
  • Alphabetically A-Z
  • Alphabetically Z-A
  • Date, old to new

I've already tried several tipps from here, e.g. like this one:

button#option-a737cb2d-0cb9-488a-9f74-4a291c2800b8 { display: none; }

But it's not working. Maybe it's because I'm using the newest Prestige Version (10.0.2)?

 

I would also like to add only certain values to the filter options. For “Sizes”, for example, I don't want to show all values as filter options, but only manually selected ones (only size 52-64, but not size 96-X-179-cm etc). How can I customize these filters?

 

filters.png

 

Thank you very much in advance,
Chrissy

 

Replies 5 (5)

DitalTek
Shopify Partner
864 103 121

Hi,

> I'd like to remove the following "Sort by" option within my prestige theme:

The your expected here are you want set default other option instead of "Sort by", right?

 

> Second point?

Do you have use any app to filter?

 

 

- You can please Like and Accepted Solution if my suggestion helpful.
- And you want to hire developer Theme or App Shopify => Feel free to send me a DM or contact to us via Email | WhatsApp
- Website: ditaltek.com
chrissy8329
Tourist
3 0 1

Hello,

Thank you for your reply.

No, I would like to keep the “Sort by” options, but there are too many for me. I only want to keep the following options (see picture).
Bildschirmfoto 2024-07-22 um 07.55.00.png

 

No, I am not currently using a filter app.

 

Best regards

Roy-ロイ
Shopify Partner
91 19 34

Hi @chrissy8329 ,

I'd be happy to help you with customizing the sorting options on your collection page. Could you please share the link to your collection page so we can take a closer look at the CSS selector and provide a CSS solution? However, I think it would be even better if we could eliminate the sortby options from the liquid code itself.

In the meantime, you may find this link to a liquid solution helpful:
https://community.shopify.com/c/shopify-design/customise-sorting-option-on-collection-page/td-p/6645....

For customizing the displayed filter options, I recommend using the Shopify Search & Discovery App.
It's a powerful tool that can help you achieve your desired outcome.

Roy_0-1721638357405.png

 

Let's connect and grow your Shopify business together! 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - Connect with me at: roy.solution.partner@gmail.com ( CRO | Site Speed Optimization | Custom Development )

chrissy8329
Tourist
3 0 1

Hello Roy,

 

thanks for your reply.

 

I did now find a solution regarding the filters within the Search & Discovery App. Thanks!

 

But regarding the "Sort by" problem: I'm not live yet, so I can't share a link, I'm sorry. 

And would you be so kind and send the link again? It wasn't clickable unfortunately. 

 

Thank you very much in advance,

Chrissy

Roy-ロイ
Shopify Partner
91 19 34

I am glad that it worked. 

Regarding the "Sort by" problem. I think I just have the solution for you. There is a bit of coding involved I hope its not much of a hassle. 

1. To get started navigate to Online Store > Themes > Customize. 
2. Go to Theme settings
3. Add this code in the Custom CSS field. 

[value="title-ascending"], 
[value="title-descending"] {
    display: none;
}

 
4. It should look like this: 

Roy_0-1721800803669.png

5. If everything works out fine then the Alphabetically, A-Z and Alphabetically, Z-A should be removed from the sort by dropdown now. 
6. To remove the rest we need to right click on the option and inspect it. In the dev tools it will highlight the inspected element and we just need to get the "value" attribute. It can be too complex, if you are having difficulties please just share me the screenshot of the inspected options. I will change the given code and make the necessary modifications to apply it on the rest. 

Roy_1-1721801283137.png

 



 

Let's connect and grow your Shopify business together! 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - Connect with me at: roy.solution.partner@gmail.com ( CRO | Site Speed Optimization | Custom Development )