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

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

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

 

Hi Sid, Thank for your response.  

The solution is helpful. 

If anyone has the same requirement please follow the Simple correction . The first solution will only round the corners for search bar not the input search button. 

MehakS
Tera Contributor

By applying this it is not working in test instance. In dev it worked. Do you have any suggestions?