Shopify themes, liquid, logos, and UX
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:
pw: geicay
Solved! Go to the solution
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:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
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:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
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:
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.
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
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025