Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi, I'd like to change announcement bar color to red and also bold the text.
Thank you.
Theunavailable.myshopify.com
Solved! Go to the solution
This is an accepted solution.
Please add the following code at the bottom of your css file.
.utility-bar {
background: red !important;
}
.announcement-bar__message {
font-weight: bold;
}
Hi @TheUnavailable Thanks for providing the URL, Please add the code in your theme.css/base.css/style.css file which is available in your theme.
.page-width.utility-bar__grid {
background-color: red !important;
}
p.announcement-bar__message.h5 {
font-weight: bold !important;
}
If you are not sure where is your theme.css/base.css/index.css/style.css file please follow the steps:
Result:
If you will unable to implement the same then I'm happy to do this for you, let me know. I can implement the code changes so that this will work well for you.
Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!
Best Regards
Sahil
- Your
please use this css
<style>
.announcement-bar-section {
background: red !important;
}
.announcement-bar p span {
font-weight: 700;
color: #fff;
}
</style>
hope so it will work
This is an accepted solution.
Please add the following code at the bottom of your css file.
.utility-bar {
background: red !important;
}
.announcement-bar__message {
font-weight: bold;
}
Thanks. What code can I add to that to make the color white?
Do you need text color white ?
Yes please
Hello! just following up on this question. How to make text color White for Sold Out badge? thank you in advance.
Please add the following code to your assets/base.css bottom of the file.
.product__info-wrapper .price .badge.price__badge-sold-out { color: #fff !important;}
2] second solution Please add the following code to your layout/theme.liquid before end </body> tag
<style>
.product__info-wrapper .price .badge.price__badge-sold-out { color: #fff !important;}
</style>
Thanks!
Million thank you! ⭐