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

Topic summary

Request: change Shopify announcement bar background to red and make the text bold.

What was provided:

  • Multiple CSS snippets to achieve this, e.g. set background to red on .page-width.utility-bar__grid or .announcement-bar-section, and make text bold with p.announcement-bar__message.h5 or .announcement-bar__message.
  • Instructions to edit the theme stylesheet (theme.css/base.css/index.css/style.css) via Online Store > Customize > Edit code, then add the CSS at the bottom of the file. A screenshot illustrated the result.

Follow‑up on text color:

  • The requester asked how to make the announcement text white; confirmation was requested and given. One suggestion included setting color: #fff (e.g., targeting .announcement-bar p span). No explicit final confirmation was posted for this specific change.

New related query (Sold Out badge):

  • Another user asked to make the “Sold Out” badge text white. A working solution was given: .product__info-wrapper .price .badge.price__badge-sold-out { color: #fff !important; } and was confirmed. A “second solution” was referenced but the code was not included.

Status: Announcement bar background/bold solutions provided; announcement text-to-white request pending explicit closure. Sold Out badge color issue resolved. Images and a product link were used to illustrate results.

Summarized with AI on January 2. AI used: gpt-5.

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

Thank you.

Theunavailable.myshopify.com

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:

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

please use this css

.announcement-bar-section { background: red !important; } .announcement-bar p span { font-weight: 700; color: #fff; }

hope so it will work

@TheUnavailable

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?

1 Like

@TheUnavailable

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.

https://beautybuddy.nl/products/aromatica-rosemary-hair-thickening-conditioner

1 Like

@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 tag


Thanks!

Million thank you! :star: