Re: change announcement bar background

Solved

change announcement bar background

adorcollective
Tourist
11 0 2

Hello, I have my site wich I edited in the past so the header backround is transparent. Now I want to add an announcement bar above the header but the background is transparent too. I want to make the background of the announcement bar black but the header background still remains transparent. In the code in "theme liquid" I spotted that it take it as a group but I don't know much coding so it would be easier if you can help. Thank you.

 

This is the website:

www.adorcollective.com

pw: geicay

Accepted Solution (1)

Moeed
Shopify Partner
7346 1992 2430

This is an accepted solution.

Hey @adorcollective 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.page-width.utility-bar__grid {
    background: black !important;
}
</style>

RESULT:

Moeed_0-1718277865514.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 4 (4)

Moeed
Shopify Partner
7346 1992 2430

This is an accepted solution.

Hey @adorcollective 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.page-width.utility-bar__grid {
    background: black !important;
}
</style>

RESULT:

Moeed_0-1718277865514.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


gravitygirl12
Visitor
1 0 0

Hi,

 

I used this code for my announcement bar, but the bar doesn't stretch across the entire page. Any tips to fix this? See screenshot:

 

Screenshot 2024-06-18 at 10.03.11 AM.png

Dan-From-Ryviu
Shopify Partner
11537 2258 2441

Hi @adorcollective 

Please add this code to theme.liquid file, after <head>

<style>
.utility-bar { background: #000; height: auto; }
</style>

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

Rahul_dhiman
Shopify Partner
806 155 169

Hello @adorcollective , 

Go to online store ---------> themes --------------> actions -------------> theme.liquid
add this CSS at the very end above the </body > tag

<style>
.page-width.utility-bar__grid {
    background: black !important;
}
</style>

 Thanks

Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront

Contact here


BEST CUSTOMER ACCOUNTS APP WITH CUSTOM WISHLIST OPTION 
TRY OUR APP :

PWC: Customer Accounts & Pages