New Shopify Certification now available: Liquid Storefronts for Theme Developers

Change the background of the search bar

Solved
PedroSoares1234
Excursionist
34 1 5

Hi guys! I want to change some background colors of the search bar when there is and there isnt results and i want to change too the background of the search results. Bellow i present to you the images to you guys see what is to change. The color that i want to change all the background to is #e7d7c0.

PedroSoares1234_0-1696777982412.pngPedroSoares1234_1-1696778100880.png

My site is: trend4two.com

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
4235 979 1193

This is an accepted solution.

Hi @PedroSoares1234 

Try this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

input#Search-In-Template, .predictive-search.predictive-search--search-template {
    background: #e7d7c0 !important;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1696782542523.png
Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 3 (3)
Made4uo-Ribe
Shopify Partner
4235 979 1193

This is an accepted solution.

Hi @PedroSoares1234 

Try this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

input#Search-In-Template, .predictive-search.predictive-search--search-template {
    background: #e7d7c0 !important;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1696782542523.png
Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


PedroSoares1234
Excursionist
34 1 5

Thank you very much, that worked!

 

Made4uo-Ribe
Shopify Partner
4235 979 1193

Welcome, please dont forget also to Like the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com