Shopify themes, liquid, logos, and UX
Hi all,
How do I change the color of the on-sale price to red on products that are on-sale? All other prices must have the standard color. I would also like to remove the on-sale tag. I have tested various solutions posted here on the forum but none work completely correctly for my site. Im using the Venture theme.
My url: wixter.se
Thanks!
Add this to your CSS file:
/* Red sale tag product page */
#ProductPrice-product-template.product-single__price {
color: red;
}
/* Red sale tag product card */
.product-card__price:last-child {
color: red;
}
/* Hide sale tag product page */
#ProductSaleTag-product-template {
display: none
}
/* Hide sale tag product card */
.product-tag.product-tag--absolute {
display: none;
}
Note that this will probably hide all product tags/badges if you are using them elsewhere.
Thanks for your answer. Im not really sure how to edit the css as I work with theme.scss.liquid.
Please add the following code at the bottom of your assets/theme.scss.liquid file.
.template-product span#ProductPrice-product-template {
color: red;
}
.template-product li#ProductSaleTag-product-template {
display: none;
}
.product-tag.product-tag--absolute {
display: none;
}
Hope this works.
Thanks!
Thanks a lot!
It works halfway but now the color is red even on products that are not on-sale.
User | RANK |
---|---|
69 | |
65 | |
63 | |
53 | |
47 |
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023