Shopify themes, liquid, logos, and UX
I would like to change the font size of my announcement bar MOBILE ONLY.
Desktop size is good.
edensbakehouse.nl
yuidri
Try this one.
p.announcement-bar__message.h5 span {
font-size: 12px;
}
If you like to add the boldness, to make it readable use this code.
p.announcement-bar__message.h5 span {
font-size: 12px;
font-weight: bold;
}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
This also changes the size of the announcement bar for desktop.
I requested a change for MOBILE ONLY!
You can follow this instruction:
1. Go to Shopify > Theme > Customize
2. Copy and paste this code on Theme settings > Custom CSS section
@media screen and (max-width: 768px){
p.announcement-bar__message span {
font-size: 12px !important;
}
}
Result:
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025