Shopify themes, liquid, logos, and UX
How can I change the color of the Sale icon on the Sense theme. It is currently white but I want it to be something else. Thank you!
Solved! Go to the solution
This is an accepted solution.
It should be outside of media screen
incorrect
@media screen and (min-width: 990px) {
.product--large:not(.product--no-media) .product__info-wrapper, .product--large:not(.product--no-media) .product__media-wrapper {
max-width: calc(50% - var(--grid-desktop-horizontal-spacing) / 2);
width: calc(50% - var(--grid-desktop-horizontal-spacing) / 2);
.product .price .badge {
background-color: #000;
color: #fff;
}
}
Correct
@media screen and (min-width: 990px) {
.product--large:not(.product--no-media) .product__info-wrapper, .product--large:not(.product--no-media) .product__media-wrapper {
max-width: calc(50% - var(--grid-desktop-horizontal-spacing) / 2);
width: calc(50% - var(--grid-desktop-horizontal-spacing) / 2);
}
.product .price .badge {
background-color: #000 !important;
color: #fff !important;
}
Please provide store urls
https://charmente.com/products/theultimatecosmeticbag
I've tried several solutions already but they only seem to work for the desktop version of my website.
Hi Simon, Because you only writing the style for desktop screen.
Use this code- you can add this code in any style file.
.product .price .badge {
background-color: #000;
color: #fff;
}
or add this style on section-main-product.css file in assets line number 372
What do you mean I am only writing the style for desktop screen? I used the code that you gave me and its still only working on desktop. This is what mobile still looks like.
Hi Simon,
Can you paste the code at the bottom of section-main-product.css after
.product .price .badge {
background-color: #000;
color: #fff;
}
Yeah its still not working.
This is an accepted solution.
It should be outside of media screen
incorrect
@media screen and (min-width: 990px) {
.product--large:not(.product--no-media) .product__info-wrapper, .product--large:not(.product--no-media) .product__media-wrapper {
max-width: calc(50% - var(--grid-desktop-horizontal-spacing) / 2);
width: calc(50% - var(--grid-desktop-horizontal-spacing) / 2);
.product .price .badge {
background-color: #000;
color: #fff;
}
}
Correct
@media screen and (min-width: 990px) {
.product--large:not(.product--no-media) .product__info-wrapper, .product--large:not(.product--no-media) .product__media-wrapper {
max-width: calc(50% - var(--grid-desktop-horizontal-spacing) / 2);
width: calc(50% - var(--grid-desktop-horizontal-spacing) / 2);
}
.product .price .badge {
background-color: #000 !important;
color: #fff !important;
}
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024