Shopify themes, liquid, logos, and UX
Hello! My search results page doesn't follow my theme settings, I changed the CSS with results from another discussion on here which solved most of the issues but the search bar and search results colours are still incorrect. As you can see the results should be black text with the white background but they are instead a black background with white text:
Solved! Go to the solution
This is an accepted solution.
Hi @benio1005
.template-search__search * {
background: white !important;
color: black !important;
border-color: rgba(0,0,0,0.1) !important;
}
.template-search__search input.search__input field__input {
border-color: black !important;
}
.template-search__search .field {
border: 1px solid black !important;
border-radius: 40px !important;
}
.template-search__search button.search__button.field__button {
border-radius: 40px !important;
}
Here is the result: https://prnt.sc/bKaN94fHDhJ-
Hope this helps
Best,
Daisy
Hi @benio1005
Could you provide us with your store URL so I can check it from my end?
Best,
Daisy
This is an accepted solution.
Hi @benio1005
.template-search__search * {
background: white !important;
color: black !important;
border-color: rgba(0,0,0,0.1) !important;
}
.template-search__search input.search__input field__input {
border-color: black !important;
}
.template-search__search .field {
border: 1px solid black !important;
border-radius: 40px !important;
}
.template-search__search button.search__button.field__button {
border-radius: 40px !important;
}
Here is the result: https://prnt.sc/bKaN94fHDhJ-
Hope this helps
Best,
Daisy
Perfect! All working now thank you so much!
Hi @benio1005
Please, share your store URL. Thanks!
Thanks for the info, try this one.
<style>
.search__input.field__input, .field__label, .predictive-search__results-groups-wrapper,
div#predictive-search-option-search-keywords {
background: #ffff;
color: #000;
}
.search__input.field__input {
border: 1px solid;
}
.field__button {
color: #000;
}
.predictive-search__results-groups-wrapper *, div#predictive-search-option-search-keywords * {
color: black;
}
div#predictive-search-option-search-keywords {
border-top: 1px solid;
}
p.predictive-search__item-heading.predictive-search__item-query-result.h5 mark {
color: black;
opacity: .7;
}
</style>
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Hi @benio1005,
Please go to Actions > Edit code > Assets > component-search.css file and paste this at the bottom of the file:
.template-search__search {
--color-background: 255, 255, 255;
--gradient-background: #ffffff;
--color-foreground: 18, 18, 18;
--color-background-contrast: 191, 191, 191;
--color-shadow: 18, 18, 18;
--color-button: 18, 18, 18;
--color-button-text: 255, 255, 255;
--color-secondary-button: 255, 255, 255;
--color-secondary-button-text: 18, 18, 18;
--color-link: 18, 18, 18;
--color-badge-foreground: 18, 18, 18;
--color-badge-background: 255, 255, 255;
--color-badge-border: 18, 18, 18;
--payment-terms-background-color: rgb(255 255 255);
}
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024