Shopify themes, liquid, logos, and UX
How can I change my website announcement bar size? I want to make it thinner and the font smaller. None of the solutions I've found in the other discussions have worked for me.
Thank you.
Solved! Go to the solution
This is an accepted solution.
Hey @cr2024,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
14px is the font size, you can adjust it as you please.
<style>
p.announcement-bar__message.h5 span {
font-size: 14px !important;
}
p.announcement-bar__message.h5 {
padding: 5px 0 !important;
min-height: auto !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Hey @cr2024,
Can you share the link to your store please? Thanks!
This is an accepted solution.
Hey @cr2024,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
14px is the font size, you can adjust it as you please.
<style>
p.announcement-bar__message.h5 span {
font-size: 14px !important;
}
p.announcement-bar__message.h5 {
padding: 5px 0 !important;
min-height: auto !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Thank you so much
Hi @cr2024
If you share your store URL and password with me, I will check and provide you with the solution.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025