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

Re: Announcement Bar Color + Bold Text

Solved

How can I change the announcement bar color and make text bold?

TheUnavailable
Tourist
18 0 2

Hi, I'd like to change announcement bar color to red and also bold the text.

Thank you.

Theunavailable.myshopify.com

Accepted Solution (1)

dmwwebartisan
Shopify Partner
12384 2560 3749

This is an accepted solution.

@TheUnavailable 

Please add the following code at the bottom of your css file.

.utility-bar {
    background: red !important;
}
.announcement-bar__message {    
    font-weight: bold;
}
If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
PageFly App to customize your pages | The most powerful Shopify page builder app

View solution in original post

Replies 10 (10)

sahilsharma9515
Shopify Partner
1280 165 249

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:

  1. Login in shopify admin.
  2. Click on the Online Store.
  3. Then click on the button next to Customize in live Theme.
  4. Click Edit Code.
  5. Search theme.css/base.css/index.css/style.css in the code in left hand side which ever is available in your theme.
  6. You can add the above code at the bottom of the file.

Result:

sahilsharma9515_0-1701234271905.png

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

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️


xtrend
Explorer
70 25 9

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

dmwwebartisan
Shopify Partner
12384 2560 3749

This is an accepted solution.

@TheUnavailable 

Please add the following code at the bottom of your css file.

.utility-bar {
    background: red !important;
}
.announcement-bar__message {    
    font-weight: bold;
}
If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
PageFly App to customize your pages | The most powerful Shopify page builder app
TheUnavailable
Tourist
18 0 2

Thanks. What code can I add to that to make the color white?

dmwwebartisan
Shopify Partner
12384 2560 3749

@TheUnavailable 

Do you need text color white ?

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
PageFly App to customize your pages | The most powerful Shopify page builder app
TheUnavailable
Tourist
18 0 2

Yes please 

olgapak
Tourist
7 1 1

Hello! just following up on this question. How to make text color White for Sold Out badge? thank you in advance.

dmwwebartisan
Shopify Partner
12384 2560 3749

@olgapak 

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!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
PageFly App to customize your pages | The most powerful Shopify page builder app
olgapak
Tourist
7 1 1

Million thank you!