Recent searches


No recent searches

How to update the color of the placeholder text in search box

Answered


Posted Jul 28, 2021

Hi 

I am looking for help to update the placeholder color of my search box.

Any help is appreciated

Thanks in advance


1

8

8 comments

image avatar

Pulkit Pandey

Zendesk LuminaryCommunity Moderator

Hi Ronit

Please add the below code at the bottom of your style.css file 

.search-full ::placeholder {
   color:red;
}

Let me know if it solves your issue 

 

Thanks

Pulkit

0


Thanks ☺️ pulkit
It works, I have few more questions can you help me on this

0


image avatar

Pulkit Pandey

Zendesk LuminaryCommunity Moderator

Hey Ronit,
Yes you can ask your questions I am happy to help you

0


I want to update the text size of the placeholder

0


image avatar

Pulkit Pandey

Zendesk LuminaryCommunity Moderator

Hi Ronit

Please placed the below code at the bottom of your style.css
search-full ::placeholder {
color:red;
font-size: 18px; // you can update the value of your choice
}

Thanks

0


Do I know to way to change shape of search bar.

0


image avatar

Ifra Saqlain

Zendesk LuminaryMost Engaged Community Member - 2022Most Engaged Community Member of The Year - 2021Community Moderator

Add the below CSS code to your style.css file at the end of all code:

.search.search-full input[type="search"]{
border-radius:0;
}

 

If you add little bit of border-radius then increase the number in border-radius CSS property, see how I'm doing

.search.search-full input[type="search"]{
border-radius:5px; //number of border-radius can be updated.
}

 

Increase more:

.search.search-full input[type="search"]{
border-radius:10px; //number of border-radius can be updated.
}

 

So you can increase the border-radius number.

Thanks

 

0


Working. It will look fine with blue border, how can I add??

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post