Liquid, JavaScript, themes, sales channels
hi,
Could someone please help me by providing a code to change the sale price and badge to red in the District theme?
Thank you,
Dani
Solved! Go to the solution
This is an accepted solution.
span.label.sale {
background-color: red !important;
}
Add this CSS at the bottom of Online Store->Theme->Edit code->Assets->theme.scss.liquid
This is an accepted solution.
put this css code
.price span.money {
color: #B81DE1;
}
Hello,
Can You Please Share Your Store URL... if your store has password protection then also share a password
I Will Check and Provide a Proper Solution
Thank You!
hi there, my store URL is Bikini - Sale (madetobefree.com.au)
Can I cut and paste what you need here instead I'm not sure what my password is.. otherwise will try to reset. What part of theme.scss.liquid could I copy and paste here for you?
Thank you so much,
Dani
This is an accepted solution.
span.label.sale {
background-color: red !important;
}
Add this CSS at the bottom of Online Store->Theme->Edit code->Assets->theme.scss.liquid
hey it did work thank you so much! I'm even able to play with the colours as well by replacing the word 'red' in the code. How can I make the new price other color as well?:
Thank you,
Dani
This is an accepted solution.
put this css code
.price span.money {
color: #B81DE1;
}
Awesome, it worked! Thank you so much, really appreciated!
Sorry I just realised that the price colour of the products not on sale also changed, is there any further code that I can enter to avoid it? Example below should be showing the original dark greyish colour (default):
Thank you so much again!
User | RANK |
---|---|
35 | |
24 | |
17 | |
9 | |
9 |
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023