How do I centre my text on the announcement bar to match and centre the logo?
Topic summary
A user seeks help centering text in the announcement bar to align with their centered logo on a Shopify store using the Studio theme.
Solution provided:
- Navigate to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS
- Add the following CSS code:
.announcement-bar {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
The discussion includes a screenshot showing the current misalignment and requires store URL access for troubleshooting. The CSS solution uses flexbox properties to center the announcement bar content both horizontally and vertically.
Please share the password too @shopcheri
i have removed password.
try URL
Hi @shopcheri
To complete your requests, please follow these steps:
- Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
- Paste the code provided into the Custom CSS section.
.announcement-bar {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
I hope this helps
Best,
Daisy
