Change sale Badge color ONLY on Product Page - Dawn Theme

Hello, I tried to change the “sale” badge color next to the price on base.css and it worked but it changes also on homepage where I have the featured products and it doesn’t look good, i’d like to have the “sale” badge with background-color #B59393 on the product page and “sale” badge with background-color black for the homepage, is it posible?

I use dawn theme

1 Like

Hi @Gustavo1105 ,
This is Theodore from PageFly - Shopify Page Builder App.

Online Store ->Theme ->Edit code->theme.liquid


I’ll be so happy if my suggestion can help to solve your problem. If you have any further questions, please feel free to tell me.
Best regards,
Theodore | PageFly

1 Like

I appreciate the help but that code changes the background-color on all pages, I just want to change it on the product page to that color, while maintaining them on color black on homepage

Hi @itsfrizzy

Check this one.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “theme. Liquid” file. Find the tag and paste the code below before the tag.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

I apologize for this delay.