The background color of the sort by options is the same as the text color making it unreadable. How do I change it?
Topic summary
A user encountered a readability issue where the background color of the “sort by” dropdown options matches the text color, making selections invisible.
Proposed Solutions:
Multiple developers suggested adding custom CSS code to the theme.liquid file, just before the closing </body> tag. The recommended approaches include:
- Targeting
.facet-filters__field .select__selectand.mobile-facets__sort .select__selectclasses - Using
#SortBy option, #SortByselectors with black background and white text - Setting
background: black !important;to override existing styles
Current Status:
A new user (ChadXF) reported the same problem on their store (www.kave.co.za) and confirmed that the suggested CSS solutions did not resolve the issue after implementation. The discussion remains open with no confirmed working solution for all cases. Several responders requested store URLs and passwords to provide more specific troubleshooting.
Hello @2Hops
You can add code by following these steps
-
Go to Online Store → Theme → Edit code.
-
Open your theme.liquid file
-
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Add this otherwise share your store URL and password if any please.
so i can check and provide you possible solution for your question.
Hello @2Hops
Please provide URL and password of your store.
Hi @2Hops ,
To change the background color of the “Sort by” options, follow these steps:
-
Go to Online Store > Themes.
-
Click on Actions next to your current theme and select Edit code.
-
In the code editor, locate the theme.liquid file. This is typically found under the Layout folder.
-
Scroll to the bottom of the theme.liquid file, and just above the closing tag, add the following custom CSS code:
Refer screenshot:
- Click Save to apply the changes.
This code sets the background color of the “Sort by” options to black. You can replace black with any color of your choice.
I hope this helps! If not, please provide url of website.
If it does, please like it and mark it as a solution!
Regards,
Sweans
Hello @2Hops
I think you need an output like this.
for that please use this css
#SortBy option, #SortBy {
background: black;
color:#fff;
}
Hi all.
I’m currently facing the same issue with my sort by background color. I just started with shopify and tried inputting the above codes.
After saving the changes, the background is still the same.
Would gladly appreciate any help, thanks.


