Search Bar custom

Solved

Search Bar custom

THIJPF
Tourist
5 0 0
Hello, I would like to modify the appearance of the search tool: "search"
 
THIJPF_1-1731943848752.png
the 1st photo shows what I currently have and the second shows what I want to obtain
I'd like to have a white block with the "Search" writing in black instead of what i have now ( the opposite) Shopify customer service advised me to modify this with custom code but I don't know much about it Thanks in advance to those who will answer me

 

 
 

 

Capture d’écran 2024-11-18 161312.pngCapture d’écran 2024-11-18 161816.png

Accepted Solution (1)
suyash1
Shopify Partner
11080 1365 1746

This is an accepted solution.

@THIJPF  add !important to last line of css, to make it like this

input.predictive-search__input::placeholder {color: #000 !important;}
To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com

View solution in original post

Replies 6 (6)

suyash1
Shopify Partner
11080 1365 1746

@THIJPF  can you please share this webpage link?

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com
THIJPF
Tourist
5 0 0
suyash1
Shopify Partner
11080 1365 1746

@THIJPF - please add this css to the very end of your theme.css file and check,
Shopify Admin -> Online Store ->Theme -> Edit code -> theme.css

 

.icon--header-search{margin-left: 10px;}

.header__search-bar.predictive-search{background-color: #fff; color: #000;}

.predictive-search__input::placeholder{color:#000;}
To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com
THIJPF
Tourist
5 0 0

it worked thanks a lot
but the  "search" text disapperead 

Capture d’écran 2024-11-18 165908.png

suyash1
Shopify Partner
11080 1365 1746

This is an accepted solution.

@THIJPF  add !important to last line of css, to make it like this

input.predictive-search__input::placeholder {color: #000 !important;}
To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com
THIJPF
Tourist
5 0 0

It worked perfectly thanks a lot