Re: How Do I Change The "Sale" Tag Color In Sense Theme?

Solved

How Do I Change The "Sale" Tag Color In Sense Theme?

Simon159
Explorer
115 0 21

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!Screenshot 2023-08-08 at 11.28.23 AM.png

Accepted Solution (1)
saurav9005
Shopify Partner
99 15 25

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 hit Like and Mark as Solution, If this answer solve your problem.  If you find my reply helpful, a small Coffee Tip would make my coding heart soar!

View solution in original post

Replies 7 (7)

saurav9005
Shopify Partner
99 15 25

Please provide store urls

please hit Like and Mark as Solution, If this answer solve your problem.  If you find my reply helpful, a small Coffee Tip would make my coding heart soar!
Simon159
Explorer
115 0 21

https://charmente.com/products/theultimatecosmeticbag

 

I've tried several solutions already but they only seem to work for the desktop version of my website.

saurav9005
Shopify Partner
99 15 25

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

saurav9005_0-1691512123113.png

 

please hit Like and Mark as Solution, If this answer solve your problem.  If you find my reply helpful, a small Coffee Tip would make my coding heart soar!
Simon159
Explorer
115 0 21

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.

IMG_5CB44480C6B6-1.jpeg

saurav9005
Shopify Partner
99 15 25

Hi Simon, 

 

Can you paste the code at the bottom of section-main-product.css after

 

 

saurav9005_2-1691512718815.png

 

 

.product .price .badge {
    background-color: #000;
    color: #fff;
}

 

please hit Like and Mark as Solution, If this answer solve your problem.  If you find my reply helpful, a small Coffee Tip would make my coding heart soar!
Simon159
Explorer
115 0 21

Yeah its still not working.

saurav9005
Shopify Partner
99 15 25

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 hit Like and Mark as Solution, If this answer solve your problem.  If you find my reply helpful, a small Coffee Tip would make my coding heart soar!