Change CSS in Search Bar??


I created a search bar template easily enough but as you can see, but now I have to change the text color of the search results from blue to white. How do I change the CSS for this template. The attached CSS used on other pages does not do it.

Hi @grega
Please add below code inside your Page stylesheet sheet easily you can find in your template :

Just Paste

ul.hs-search-field__suggestions { background: #ffffff; padding: 10px 10px;}ul.hs-search-field__suggestions>li>a {
 color: #000;
 text-decoration: none;
}

Result/ Output-

:slightly_smiling_face:

Please Accept this Solution I am sure it will work
Thanks!
Ajit

Unfortunatly it does not work. Unless I’m adding it to the wrong place.

Thanks

I added it here and nothing changes.

Ajit:

I was wrong. The code works. THANKS.

Are you able to tell me why I have two search boxes now though?

Screen Shot 2020-05-07 at 10.28.49 AM.png

Hi @grega
Please refer my screenshot you have added the wrong CSS
in your Style.css

Add this

ul.hs-search-field__suggestions {
 background: #fff;
 padding: 10px 10px;
}

ul.hs-search-field__suggestions li>a{
 color:#000;
 text-decoration:none;
}

And One more important issue you haven’t created Result Page

Look Example here by using search field: PSDtoHUBSPOT | Creative Blog
Search Result: high-search
Please follow the above Guide LInes and I will suggest reducing the site-search input
By 50%. Looks very odd

Let me know if my help needed in coding.
Thanks!
Ajit
support@psdtohubspot.com

Thank you for all the help.

You suggest reducing sitre search input by 50%. Where do I go to change the size?

Thanks,

Greg

Hi @grega
Really Happy My Solution helped for your website,
Please Copy & Paste this below code inside your stylesheet.

.hs-search-field {
 position: relative;
 max-width: 400px;
 float: right;
 width: 100%;
 margin-bottom: 10px;
}

input.hs-search-field__input {
 height: 50px;
 padding-left: 16px;
 font-size: 14px;
}

.hs-search-field--open .hs-search-field__suggestions {
 border: 1px solid #000;
 padding: 10px;
}

Output :

If this helps please Accept My Solution

Happy to Help :slightly_smiling_face:
Thanks!
Ajit