How can I change the search bar background color in Dawn?

Thanks to some of the stuff I found, I was able to modify the search results to have a nice white background. I used the following in base.css

#predictive-search-results {
    background: #fff !important;
    color: #000 !important;
}
#predictive-search-results * {
    color: #000 !important;
}

What I cannot find is how to change the search box background color to white to make it contrast against the red header. I would also like the make the “Search” text bold inside the box.

I tried messing with the Search-modal CSS in base.css, but I couldn’t find the right container.

Any suggestions on the right combination?

2 Likes

Hey @Uni-Trend

Could you please provide your Store URL and, if applicable, the Password too? Your cooperation is greatly appreciated!

Best Regards,
Moeed

Hi @Uni-Trend

Would you mind to share your Store URL website? with password if its protected. Thanks!

thogli

1 Like

Thank kyou for the information.

Try this one.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • 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:
input#Search-In-Modal {
    background: white !important;
}
1 Like