How to change the colour of filter and sort menus / text on search results page

How to change the colour of filter and sort menus / text on search results page

TooSpicyNZ
Excursionist
12 0 5

Hi team

 

Trying to adjust the colours of my search results page as there doesn't appear to be a way to select a colour theme for this section (??)

 

Have looked everywhere, found what i needed to change background colour but cannot work out how to change the text colour

 

i used this in theme.liquid to change the background colour to black;

 {% if template == 'search' %}
<style>
main#MainContent {
background: #000000;
}
</style>
{% endif %}

 

How do i then change all my text for the filter and sort options to white? can i add something more to this?

 

screenshots to help clarify;

 before

Screenshot 2025-02-02 120245 before.png

 

after!

Screenshot 2025-02-02 120432 after.png

 

Thanks in advance

 

Replies 8 (8)

devcoders
Shopify Partner
1450 172 451

Hello @TooSpicyNZ 
Thank you for submitting your query to the Shopify community. I’d be happy to assist you. Could you please provide the store URL and password (if it’s password-protected) so I can review and get back to you with an update?

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
TooSpicyNZ
Excursionist
12 0 5
devcoders
Shopify Partner
1450 172 451

Hello @TooSpicyNZ 

I checked the site, and a black background has already been added across all pages. So, the search page is also showing a black background. Do you want the background color of the search page to be white?

Home page

devcoders_0-1738480553292.png


Search page

devcoders_1-1738480580312.png

 





Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
TooSpicyNZ
Excursionist
12 0 5

Hi, no I want the background black which I managed to do myself. Now I need help making the sort and filters text white please. Thanks

devcoders
Shopify Partner
1450 172 451

Hello @TooSpicyNZ 

 

Go to Online Store, then Theme, and select Edit Code.
Search for assets/base.css Add the provided code at the end of the file.

 

.template-search .facets-container {
background: white;
padding: 10px 10px 0;
}

 

devcoders_0-1738486691146.png

 



Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
TooSpicyNZ
Excursionist
12 0 5

Hey, I appreciate you trying to help me but the background colour is not the issue. As the title of the thread says I want to make the text white

(as it is currently invisible, black on black!) thanks

graykat
Tourist
3 0 2

Did you find an answer to this?   I have tried editing tons of code with no success.

TooSpicyNZ
Excursionist
12 0 5

Hi, no, no solution as such.

In the end I chose a different but complimentary background colour instead of the black. So at least that way the black text and all the drop downs etc are visible and useable.

Cheers