I am having an issue with the search bar on my website being the wrong colour due to which it cannot be seen at all. I was able to identify the problem but I am not sure where this code originates from or how to fix it.
Hi @shopeve
Would you mind to share your Store URL website? with password if its unpublish. Thanks!
Hi @shopeve
This is David at SalesHunterThemes.
To change the color of input field
Follow this path:
Themes => edit code => asset => base.css
and add this code to bottom of the file base.css
.header__search .field__input {
background: transparent;
}
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
David | SalesHunterThemes team
Thank you so much this worked!
Sure its https://shopeve.in/
Thanks, sorry to say but this cant be transparent. Try this one and change other color.
- 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:
div#predictive-search-option-search-keywords {
background: blue !important;
}
- And Save.
- Result:
Try this one. Again Same Instruction.
div#predictive-search-results {
background: white !important;
}
And Save.
This worked thank you for your help!
I also had the black background of both the search bar and results - here was my fix . . .
I added this Custom CSS field on the Search Section of the Search Template.
I hope this helps someone else.
.search .field__input {
background: #f3f3f3;
}
div#predictive-search-results {
background: white !important;
}


