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
7101 1906 2338

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
7101 1906 2338

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
11360 2226 2399

Hi @adorcollective 

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

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

- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify

Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

Rahul_dhiman
Shopify Partner
776 149 160

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