How can I change the background color of the search results page?
Topic summary
A user seeks to change the background color of their Shopify store’s search results page. After sharing their store URL, they receive a CSS solution to add to their assets/base.css file:
Initial desktop fix:
.template-search {
background: #000 !important;
}
The user reports this only works on desktop. A follow-up solution is provided for mobile devices:
Mobile-specific code:
@media screen and (max-width: 749px) {
.template-search {
background: #000 !important;
}
}
Both code snippets should be added to the bottom of the base CSS file. The discussion appears resolved with working solutions for both desktop and mobile views.
1 Like
Hey! Yes of course
Please add the following code to your assets/base.css at the bottom of the file.
.template-search {
background: #000 !important;
}
Thanks!
1 Like
Thank you, but it only change in desktop, how can i change in mobile?
Please add this following the code for mobile
@media screen and (max-width: 749px) {
.template-search {
background: #000 !important;
}
}
