Solved

Announcement Bar Color + Bold Text

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
12291 2547 3698

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
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app

View solution in original post

Replies 10 (10)

sahilsharma9515
Shopify Partner
839 100 150

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
69 25 6

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
12291 2547 3698

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
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | 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
12291 2547 3698

@TheUnavailable 

Do you need text color white ?

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | 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
12291 2547 3698

@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
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app
olgapak
Tourist
7 1 1

Million thank you!