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.
A user seeks to change the compare price background color specifically in predictive search results, not in product tabs. The store is password-protected (danlo.in, password: hyur5573).
Two solutions provided:
Solution 1 (devcoders):
base.css file.price-item.price-item--regular with custom background color (#ee9162), padding, border-radius, and white text colorSolution 2 (Made4uo-Ribe):
base.css, style.css, or theme.cssdiv#predictive-search-results .price__sale span > s.price-item with red text color, white background, padding, and border-radiusNote: Both responses contain reversed/garbled text in portions of the code and instructions, which may indicate formatting issues. The core CSS approach involves targeting predictive search price elements with custom styling properties.
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
s.price-item.price-item--regular {
color: #fff !important;
background-color: #ee6912;
padding: 2px 4px;
border-radius: 50px;
}
Hi @Dan1213
Try this one,
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!