Search bar changes on CSM

SNEnthu
Tera Contributor

PurviS_0-1720083552350.png

Hi guys, i want to change the search bar to rounded corners. 

As per my understanding i need to makes changes on the border-radius. 

Can anyone please tell me how i can achieve that? 

2 ACCEPTED SOLUTIONS

Sid_Takali
Kilo Patron
Kilo Patron

Hi @SNEnthu You don't need to Clone/Customize widget for this kind of requirement. Just CSS override will work.

Follow below steps 

1. Ctrl + right Click 

Sid_Takali_0-1720113402819.png

 

2. Edit page properties

Sid_Takali_1-1720113459222.png

3. Add below CSS code in Page Specific CSS field 

#homepage-search input{
border-radius:24px !important
}

Sid_Takali_2-1720113544537.png

4. Save and verify the result

Sid_Takali_3-1720113623346.png

 

 

Please mark my response Correct/Helpful

Regards,

Sid

View solution in original post

Hi @SNEnthu One simple correction, follow above mentioned procedure and add below CSS Code

#homepage-search input{
border-radius:24px 0px 0px 24px !important
}
#homepage-search div[widget] .input-group .input-group-btn > button {
  border-radius:0px 24px 24px 0px  !important
}

Result 

Sid_Takali_0-1720114633306.png

 

View solution in original post

5 REPLIES 5

SNEnthu
Tera Contributor

Hi @MehakS , it does work you just need to find the appropriate class in order to apply the border-radius. incase it doesn't apply just give "important !; " in the end. that should do your job. Just inspect the search bar and play around see in which class does it start working on!