How to change compare price background color in predictive search

How to change compare price background color in predictive search

Dan1213
Excursionist
24 0 8

My Store: danlo.in   (password: hyur5573)

How can i change the compare price color and background color in predictive search results. *NOT IN/ON PRODUCTS TAB  but in predictive searchs.

Replies 2 (2)

devcoders
Shopify Partner
368 57 92

Hello @Dan1213 

- Go to Online Store -> Theme -> Edit code.
- Find the file base.css and paste the code below at the bottom of the file.

 

s.price-item.price-item--regular {
color: #fff !important;
background-color: #ee6912;
padding: 2px 4px;
border-radius: 50px;
}

 

devcoders_0-1728660221823.png

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at [email protected].
If my assistance was helpful, please consider liking and accepting the solution. Thank you!

Made4uo-Ribe
Shopify Partner
8757 2093 2568

Hi @Dan1213 

Try this one,

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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:

 

div#predictive-search-results div.price__sale > span > s.price-item {
    color: red !important;
    background: white; 
    padding: 2px;
    border-radius: 2px;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1728660846045.png

     

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.