How to change compare price background color in predictive search

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.

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;
}

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;
}

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